Delgan
Delgan
Hi @deployment-ian, glad you like Loguru. ;) There is no colors in a `log` files. Displaying colors is a "feature" of terminal but files are not designed to contain colors....
Closing as I answered your question but feel free to re-open it otherwise.
Hi. This is not working out of the box with `capsys` due to Pytest internals which replace `sys.stderr` with their own special object. Consequently, if `logger.add()` was called prior to...
I'm closing the issue as it seems resolved. Feel free to re-open otherwise.
Hi @BradleyDS2. :) Can you use [a custom `rotation` function](https://loguru.readthedocs.io/en/stable/api/logger.html#file) maybe? ```python class DoRollover: def __init__(self): self._should_rotate = False def rotate(self, message, file): ... # Check internal conditions. return False...
My bad, I overlooked what `doRollover()` is actually used for, sorry. So, rotation possibly occurs when a message is logged, it can't be triggered manually and I'm not sure I...
Thanks for your kind words! I'm gland you like Loguru! :smile: I agree the proposed workaround isn't ideal compared to a `do_rollover()` method. However, implementing the solution you suggest is...
Hey @pim-hoeven. Sorry for the late answer and thank you for taking the time to open a PR. :+1: I indeed referenced the log injection attack in the documentation but...
Hi @LaxmanSinghTomar. Sorry but I'm unable to reproduce your problem. Are you able to provide a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) please, that would help me investigate the issue.
Hi @nopnopwei. I'm not sure how is your application used but keep in mind that `logger.add()` should not be called repeatedly. You should add one handler per user (from what...