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

"good-bunyan" FileReporter - Server.log Tags Are Missing #22

Open
shugigo opened this issue Sep 8, 2018 · 0 comments
Open

"good-bunyan" FileReporter - Server.log Tags Are Missing #22

shugigo opened this issue Sep 8, 2018 · 0 comments

Comments

@shugigo
Copy link

shugigo commented Sep 8, 2018

Hi,

When using the server.log function with multiple tags it is not documented in the log entry in the file.
For example - For the following server.log command
server.log(['log','server','start','demo','info','tag1','tag2','tag3'], {message: Server started at ${ server.info.uri }, uri: server.info.uri});

The good-console will write to the console:
180909/213134.152, [log,log,server,start,demo,info,tag1,tag2,tag3] data: {"message":"Server started at http://computer:50268","uri":"http://computer:50268"}

And the good-bunyan will write to the file (Using the bunyan logger):
{"name":"demo-logger","hostname":"computer","pid":9396,"level":30,"message":"Server started at http://computer:50268","uri":"http://computer:50268","msg":"[log]","time":"2018-09-09T21:31:34.157Z","v":0}

My question is why the tags are not also written to the log in the file?

Attached the code I used in my question (example.zip).

Thanks,
Shay
example.zip

@shugigo shugigo changed the title Server.log Tags "good-bunyan" FileReporter - Server.log Tags Are Missing Sep 9, 2018
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