Skip to content

A winston console transport which outputs log messages with filename and linenumber information. This is suitable for using it with the intellij-awesome-console IntelliJ IDEA plugin.

License

Notifications You must be signed in to change notification settings

mwittig/winston-dconsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A winston console transport which outputs log messages with filename and linenumber information. This is suitable for using it with the intellij-awesome-console IntelliJ IDEA plugin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published