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

MongoDB custom logger #71

Closed
trainerbill opened this issue Jul 12, 2017 · 1 comment
Closed

MongoDB custom logger #71

trainerbill opened this issue Jul 12, 2017 · 1 comment

Comments

@trainerbill
Copy link

Can a mongodb custom logger be implemented to switch the Mongo logger to server.log? Also would need a logLevel option.

http://mongodb.github.io/node-mongodb-native/2.0/tutorials/logging/

goal would be to provide the option logLevel: "debug" and then mongodb would use server.log to log to the console in mongodb debug mode.

new to hapi so if there is a better way to accomplish this let me know.

@jedireza
Copy link
Owner

This sounds like a cool idea. I'm short on time to drive this feature. It should be possible though. If anyone has time, help is much appreciated. Let us know what you find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants