0.0.8 • Published 6 years ago

winston-dconsole v0.0.8

Weekly downloads
49
License
MIT
Repository
github
Last release
6 years ago

winston-dconsole

Build Status Greenkeeper badge

A winston transport providing an extended console which outputs winston log messages including filename and linenumber of the call. This is suitable for using it with the intellij-awesome-console IntelliJ IDEA plugin. It extends the log output by adding the source code file name and line number of the logger statement executed. The output is added to the log label. If the filename without extension matches the label the filename and line number replaces the label in the log output. Note, the DConsole feature is provided by analyzing the call stack for each log output, the execution is rather slow! For this reason, DConsole should only be used for development purposes. It's experimental!

Example

var winston = require('winston'),
    debug = require('winston-dconsole');

winston.add(debug.Dconsole, {
    "timestamp": true,
    "level": "debug"
});

winston.log('debug', 'Now my debug messages are written to dconsole!');

History

See Release History.

License

Copyright (c) 2015-2018, Marcus Wittig and contributors. All rights reserved.

MIT License