-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Proposal] Consider Adding a Silence mode of Logging? #11
Comments
Are you referring to connected to the db message, when the DiskDB starts? |
Yes. Edit: I am also thinking the possibilities of catching exceptions so I can handle errors in my code. |
Sure. I can make connection message optional. But do remember this DB is not for production usage. This is a synchronous DB, where all IO operations happens in an blocking way, quite contrary to the philosophy of node. For the exception handling, can you give an example? Thanks. |
Yea, I just realize it was using sync writes. For the exception handling, nothing too fancy here, as I was thinking something like the following, instead of logging them out.
|
Makes sense. Will think of it. Side question: Will an async version of this library help? |
Oh yea, that should do it. Thanks! |
I would like to have controls on whether or not to log messages out.
Those messages are useful when it is in development, but in production mode I would rather disable or store them into a log file or even the database itself as a collection.
What do you think?
The text was updated successfully, but these errors were encountered: