-
Notifications
You must be signed in to change notification settings - Fork 125
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
format logging information (?) #129
Comments
yip, needed |
Any update on this? Trying to use this as a middleware error logger in my express application, with the following code:
It seems like the format is not even applied for the MongoDB transport. It never hits my debugger breakpoint. It does do that if I add another transport, such as
Not very useful as of now. What I'm trying to accomplish in my |
This is a needed feature. The logger itself is not really useful without this |
@JonathanLoscalzo, @samuelgoldenbaum, @KarlNilsson. There is a dirty trick you can you do for overcoming this problem without changing all your implementation. Create two loggers, one without the MongoDb transport and other with it. Then in the logger that does not have the MongoDb transport activate add a format function, and in that function call to your other logger with the desired format. Dirty and not really efficient. But works. |
Could you add this feature @yurijmikhalevich? This is important to do some detailed reporting. |
With console and file, I design my own format for log:
with printf
How Could I format with a similar approach with winston-mongodb? :-)
The text was updated successfully, but these errors were encountered: