1.0.6 • Published 9 years ago

smart-logger v1.0.6

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

smart-logger

Logger with automatic console output formatting. By default displays a short stack error - exclude node_modules and folders above of root module.

To enable smart formatting, you must register logger in an executable file from which it will be called:

    //index.js
    var Logger = require('smart-logger')
    var logger = new Logger(winstonConfig)

    var OtherClass = require('./OtherClass');
    var otherClass = new OtherClass(logger)

    //OtherClass.js

    module.exports = function OtherClass(logger) {
        this.logger = logger.reg()
    }

Details can be found in the directory test-project.

Example output

Example output

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago