Skip to content

Print logger prefix/name as second value #230

Open
@bennycode

Description

@bennycode

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions