Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

winston-dconsole

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-dconsole

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

latest
Source
npmnpm
Version
0.0.8
Version published
Weekly downloads
141
-56.48%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

logging

FAQs

Package last updated on 14 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts