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

console logging of arbitrary objects silently omits parameters (metadata), compared with console.* methods #92

Closed
chrisdew opened this issue Feb 2, 2012 · 1 comment

Comments

@chrisdew
Copy link

chrisdew commented Feb 2, 2012

For example:

> var w = require('winston');
> var d = new Date();
> w.warn('hello', {foo: d});
warn: hello
> console.warn('hello', {foo: d});
hello { foo: Thu, 02 Feb 2012 11:07:21 GMT }

The silent omission of logged parameters (metadata in Winston?) is really jarring for developers migrating from using console.* (or any of the console-API-compatible loggers).

Thanks,

Chris.

@dandv
Copy link
Contributor

dandv commented Jul 8, 2018

This example still doesn't work, I think because (in v3 at least) logging methods don't take metadata after the message string.

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

3 participants