Delgan

Results 598 comments of Delgan

Hey @namoshizun. Thank you for sharing your feedback and a possible workaround. I remember that during the initial development of Loguru several years ago, I had to replace the `Queue`...

That's a great idea! I don't know why I didn't do it sooner. I added a link to the docs, thanks for the suggestion! 👍

Hi @mischlrebl. This is indeed possible. You can define the abbreviated level name, and use it in a custom format. ```python import sys from loguru import logger def formatter(record): record["extra"]["short_level_name"]...

If anything, it already exists as an external library like [`lazy-string`](https://github.com/o3bvv/lazy-string) for example. I agree it's more powerful than the current `opt(lazy=True)` design.

Hey @musicinmybrain. Thank you for this early report on Python 3.14. Apologies for not being able to address it in a more timely manner. I fixed the failure in `test_exception_modern[type_hints-minimum_python_version0]`...

@trim21 You're correct. It would be too much of a burden for users. I still believe using `LiteralString` is superior for a few reasons: * it reduces the risk of...

I mean, because it avoids formatting the arguments if the log level is too high and that the message won't be logged anyway.

Hi @ixenion. The problem with your test is that, at the time the test function is called, the `logger` is already configured with the `sys.stdout` default sink. Therefore, although `capsys`...

Thanks @trim21 for your hard work here. I haven't tested how well type Mypyc and Cython leverage type hints. If it could indeed lead to faster execution, it would be...

> Inline type annotation are new syntax, not new stdlib function/variable can be backported by library. It the "inline type annotation" you're referring to that of [PEP 484](https://peps.python.org/pep-0484/)? Except if...