Turn off logging info #58
Answered
by
cdiener
erolkavvas
asked this question in
Q&A
-
Hi! I was wondering if there was a way to turn off the logging outputs from micom? Example of logging output below, INFO:micom:setting new abundances for None
INFO:micom:setting new abundances for None
INFO:micom:adjusting abundances for Index([], dtype='object', name='id') to 1e-06
INFO:micom:adjusting abundances for Index([], dtype='object', name='id') to 1e-06 I've tried the following but it hasnt worked, from micom import logger
logger.propagate = False
logger.logging.disabled = True
logger.logging.basicConfig(level=logger.logging.CRITICAL) Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
cdiener
Sep 13, 2021
Replies: 1 comment 1 reply
-
It's disabled by default, are you importing another package that changes the logging level? Either way, your solution was almost there but you need to set the attributes on the logger and not the module, so on Example:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
erolkavvas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's disabled by default, are you importing another package that changes the logging level? Either way, your solution was almost there but you need to set the attributes on the logger and not the module, so on
micom.logger.logger
not onmicom.logger
.Example: