Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could node enable "debug" console.log level #24

Open
mrister opened this issue Apr 25, 2018 · 0 comments
Open

Could node enable "debug" console.log level #24

mrister opened this issue Apr 25, 2018 · 0 comments

Comments

@mrister
Copy link
Contributor

mrister commented Apr 25, 2018

I wanted to enable console log level debug but could not make it work with or without a preset on with either env vars or direct configuration to logtify:

Example:
logger.debug('test', someObj);

Env vars:
CONSOLE_LOGGING=true
MIN_LOG_LEVEL=debug
MIN_CONSOLE_LOG_LEVEL=debug
LOG_LEVEL=true
LOGENTRIES_LOGGIN = false
LOGSTASH_LOGGING= false
BUGSNAG_LOGGING= false

Stream settings output:

const { stream } = require('logtify')({ presets: ['dial-once', 'prefix'] });
console.log(stream.settings)
{ CONSOLE_LOGGING: true,
 LOGSTASH_LOGGING: false,
 LOGENTRIES_LOGGING: false,
 BUGSNAG_LOGGING: false,
 JSONIFY: true,
 BUGSNAG_APP_VERSION: '0.5.1',
 LOG_TIMESTAMP: true,
 LOG_ENVIRONMENT: true,
 LOG_LEVEL: true,
 LOG_REQID: true,
 LOG_CALLER_PREFIX: true,
 presets: [ ‘dial-once’, ‘prefix’ ] 
}

Expected: to output it to the console but it is not happening

FYI, seems like MIN_LOG_LEVEL is ignored as it is not in the stream output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant