Closed arsalan86 closed 1 month ago
I'm using loguru in a module, and I .remove() the predefined logger before I add my own:
.remove()
logger.add(".logs/lastrun.log", level="DEBUG", rotation=rotate_once(), format=format)
rotate_once() returns a callable that will only return true once and then always return false.
rotate_once()
true
Any debug messages I send through the logger.debug() also get output to stdout, which I explicitly don't want.
logger.debug()
I've checked my configs, environment variables, everything I can think of, but I can't seem to trace this issue. What am I missing?
I found the issue: I was using the wrong [dev] branch for a git submodule, and the code in that submodule was adding a trace level logger to stdout.
This issue is unrelated to loguru, so I'm going to close it.
I'm using loguru in a module, and I
.remove()
the predefined logger before I add my own:logger.add(".logs/lastrun.log", level="DEBUG", rotation=rotate_once(), format=format)
rotate_once()
returns a callable that will only returntrue
once and then always return false.Any debug messages I send through the
logger.debug()
also get output to stdout, which I explicitly don't want.I've checked my configs, environment variables, everything I can think of, but I can't seem to trace this issue. What am I missing?