Delgan/loguru ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python logging library that feels as simple as from loguru import logger, with almost no setup needed.

I want one easy logger object that works right away, but can also be customized for file logging, rotating logs, retention, compression, colors, filtering, different levels, and structured messages. It should work well in scripts and larger apps, be safe with threads and multiple processes, and handle exceptions in a way that makes debugging easier instead of hiding problems.

Please make the log messages pleasant to use, with braces style formatting, lazy evaluation when possible, and compatibility with Python’s standard logging so it can fit into existing projects. Include sensible defaults, good docs, and a solid test suite. If you need to check any current Python logging behavior or docs, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab