A minimalistic logging wrapper for Python.
Every project should utilize logging, but for simple use cases, this requires a bit too much boilerplate. Instead of including all of this in your modules:
import logging log = logging.getLogger(__name__) def greet(name): log.info("Hello, %s!", name) if __name__ == "__main__": logging.basicConfig( level=logging.INFO, format="%(levelname)s: %(name)s: %(message)s", )
with this package you can simply:
import log def greet(name): log.info("Hello, %s!", name) if __name__ == "__main__": log.init()
It will produce the exact same standard library logging
records behind the scenes with automatic formatting for non-strings.
Install this library directly into an activated virtual environment:
or add it to your Poetry project:
To view additional options, please consult the full documentation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4