Delgan

Results 639 comments of Delgan

Thanks @kace for the additional use case, it's very helpful to have this kind of example while thinking about a solution. I plan to propose a way to configure formatting,...

@mcarans Are you able to provide a minimum reproducible example please (eventually in a new ticket)? I tested it locally and it worked as expected.

@mcarans When `record=True` Loguru expects the logged message to contain the `"{record}"` formatting field, e.g: ```python logger.opt(record=True).info("Logging some message from thread {record[thread].id}") ``` To do so, Loguru will call `message.format(...)`....

You can `.add()` an handler with `diagnose=False` or set the `LOGURU_DIAGNOSE` environment variable to `"OFF"`.

Hi @x931890193. I don't think this qualifies as a bug... :open_mouth: The logging methods (like `logger.error()`in your example) are designed and documented to act as much as possible like the...

In this case I better understand the issue you're facing. This is a problem that has been reported multiple times, and that's indeed why I plan to (optionally) remove the...

No official benchmarks, but Loguru is not the best candidate for fast logging (yet). It's currently slower than standard logging. ```bash $ python -m timeit -n 10000 -s "import io,logging;logger=logging.getLogger('test');logger.addHandler(logging.StreamHandler(io.StringIO()))"...

@matroscoe To achieve maximum performance, Loguru needs to be partially re-implemented using the C Python API. Before that, I'd like to release a v0.7.0 with some improvements and breaking changes....

This functionality was removed some time ago because it caused unexpected errors when the logging arguments unintentionally contained markup tags, see #197. A possibly workaround is to generate your message...

Hi @djsakisd. This is not related to the recursion limit, but to [`sys._getframe()`](https://docs.python.org/3/library/sys.html#sys._getframe) which tries to access frame of the call site to extract logging information. Typically, this error indicates...