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

Print logger prefix/name as second value #230

Open
bennycode opened this issue Oct 22, 2020 · 0 comments
Open

Print logger prefix/name as second value #230

bennycode opened this issue Oct 22, 2020 · 0 comments
Assignees

Comments

@bennycode
Copy link
Collaborator

I have checked logdown's code and it seems like Logdown.prototype._prepareOutput is generating the output message. I have created a plugin to add a timestamp before my log messages but _prepareOutput causes the logger prefix to be in the first place. That's why all my log statements look like this:

loggerName [2020-10-22 17:34:39.587] Hello, World

Is there any chance to have the logger name as second value in the log message? I want to get an output like this:

[2020-10-22 17:34:39.587] loggerName Hello, World

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