Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

winston-dconsole

mwittig1.6kMIT0.0.8

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

logging, sysadmin, tools, winston, console, IntelliJ

readme

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

changelog

Release History

  • 20150918, V0.0.1

    • Initial Release
  • 20150920, V0.0.2

    • Fixed dependency on winston
  • 20151222, V0.0.3

    • Revised README
    • Added example.js to the list of package files
  • 20160210, V0.0.4

    • Dependency updates
  • 20160215, V0.0.5

    • Fix for issue #2, traceCaller throws TypeError
    • Dependency updates
  • 20160409, V0.0.6

    • Updated dependency for winston
    • Removed obsolete dependency to lodash
    • Moved release history to separate file
    • Added license info to README
  • 20160517, V0.0.7

    • Updated dependency for stack-trace
  • 20180314, V0.0.8

    • Dropped travis builds for node 0.10 and 0.12, added support for node 6 & 8
    • Dependency updates
    • Revised README