-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Silence logging #141
Comments
I should say i didnt have this problem back when i was using 0.3.2 |
Import I wish this were (EDIT: LMK if this doesn't solve it, BTW). |
Sorry but this made no difference |
Can you paste your output? Also, see if you can include the |
For example everytime it makes queries [FINE] {MongoMessageTransformer} - 2019-01-07 02:08:48.778124: MongoReplyMessage(ResponseTo:117, cursorId: 0, numberReturned:1, responseFlags:8, {...}})
[FINE] {Connection} - 2019-01-07 02:08:48.778190: MongoReplyMessage(ResponseTo:117, cursorId: 0, numberReturned:1, responseFlags:8, {...}})
[FINE] {Connection} - 2019-01-07 02:08:48.778231: Completing MongoReplyMessage(ResponseTo:117, cursorId: 0, numberReturned:1, responseFlags:8, {...}})
[FINE] {Connection} - 2019-01-07 02:08:48.778942: Execute MongoUpdateMessage(118, data.users, {...}}) (i replaced the contents of the queries with and yes its the very first thing on the main function |
Okay, so I can at least definitely see that these messages are from Try this: hierarchicalLoggingEnabled = true;
Logger.root.level = Level.OFF; |
The |
I don't think this is a problem with mongo_dart, actually. This package doesn't add any additional logic; it just creates instances of Do you have an Instead, call it directly on your logger, i.e.: hierarchicalLoggingEnabled = true;
Logger('my_logger').onRecord.listen(...); |
I ended up not setting
Usually in other packages there is a way to change the logging level of these |
You can send a PR to make the loggers on MongoMessageHandler, etc. public. |
It seems there's no way to stop mongo_dart from printing to the console. Or at least none that i can find.
I'm printing other things to the console but are buried with query logs.
Not sure if I'm missing something or not.
The text was updated successfully, but these errors were encountered: