1.0.6 • Published 10 years ago

smart-logger v1.0.6

Weekly downloads
9
License
MIT
Repository
github
Last release
10 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

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago