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

No message is output to console when the context argument is an Error #49

Closed
terrisgit opened this issue Mar 19, 2022 · 0 comments
Closed

Comments

@terrisgit
Copy link
Contributor

terrisgit commented Mar 19, 2022

No Message Output

const Loggers = require('@goodware/log');
new Loggers({}).log('error', 'Message', new Error('An error'));

No Message Output

const Loggers = require('@goodware/log');
new Loggers({}).log('error', 'Message', { error: new Error('An error') });

No Message Output

const Loggers = require('@goodware/log');
new Loggers({}).log('error', { error: new Error('An error') });

Message output when the console outputs data

const Loggers = require('@goodware/log');
const options = {
  console: {data: true}
};
new Loggers(options).log('error', 'Message', new Error('An error'));

Message output when 'message' is an Error)

const Loggers = require('@goodware/log');
new Loggers({}).log('error', new Error('An error'));
@terrisgit terrisgit changed the title No message output to console when console using data: false and an error is provided No message is output to console when the context argument is an Error Mar 19, 2022
dev-guy added a commit that referenced this issue Mar 20, 2022
dev-guy added a commit that referenced this issue Mar 20, 2022
dev-guy added a commit that referenced this issue Mar 20, 2022
@dev-guy dev-guy closed this as completed Mar 20, 2022
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

2 participants