loguru
loguru copied to clipboard
Python logging made (stupidly) simple
model.py ``` import random import time from loguru import logger class FakeModel: def predict(self, thread_num: int, trace_id: str): sleep = random.randint(0, 4) logger.info(f"[{trace_id}-{thread_num}-3] Sleeping - start sleep={sleep} secs") time.sleep(sleep) logger.info(f"[{trace_id}-{thread_num}-4]...
Hi! First of all - i love loguru, it's a great tool and until now I had zero problem using it. Currently I run into a problem however, i have...
I wish the "Code snippets and recipes for loguru" section of the docs had an easy explanation of how to add the icons for each log level to the stderr...
When using ```logger.catch``` with error codes from the standard logging library, the log level will be rendered incorrectly as below: ```python from logging import CRITICAL from loguru import logger @logger.catch(level=CRITICAL)...
If I understand correctly, we can use `enqueue=True` on file sinks so that code does not block on `logger.info`, there is a background thread collecting log records and sending them...
- [ciscoconfparse2](https://github.com/mpenning/ciscoconfparse2) uses loguru in a [pretty simple](https://github.com/mpenning/ciscoconfparse2/issues/1) manner, decorating methods with `@logger.catch(reraise=True)` My problem is if I hit a bug in certain methods, I get an infinite traceback from...
> Thank you so much for your help. Initially, I used bind() with filter but it clubs output into single file. > When I tried to route the output of...
fresh install of loguru, testing with exampls from the docs and returns an import error: ImportError: cannot import name 'logger' from partially initialized module 'loguru' (most likely due to a...
When exception is raised, a lot of 'useless' data (like low-level/package method calls) is printed in the logs. Things are even worse when `backtrace=True` is used: ``` Traceback (most recent...
Hi @Delgan, there is a known problem with very large log entries (>16KB) being split into parts by Fluent Bit as discussed here: https://docs.fluentbit.io/manual/pipeline/filters/multiline-stacktrace#docker-partial-message-use-case https://github.com/aws/aws-for-fluent-bit/issues/25 I am also running into...