picologging
picologging copied to clipboard
An optimized logging library for Python
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. Release notes Sourced from actions/setup-python's releases. v5.0.0 What's Changed In scope of this release, we update node version runtime from node16 to node20 (actions/setup-python#772)....
Hi, I've been using `picologging` in an ASGI Framework called `Starlite`. It looks like `picologging` creates a memory leak when used in this framework. If I switch to the Python...
Passing the `extra` param on log calls behaves different in picologging compared to stdlib. Sample code: ``` import logging # import picologging as logging logging.basicConfig(format="message=%(message)s foo=%(foo)s", level=logging.DEBUG) logging.debug("msg", extra={"foo": "bar"})...
Preallocate the string writer based on the length of the fmt string. Reduces the number of times a reallocation is done on the formatted string.
The code below crashes. But if I remove %f it works. My application is a time critical one and the microsecond info is most required. lacking %f is a showstopper...
Closes https://github.com/microsoft/picologging/issues/99 Adds the `shutdown` method. WIP: The coverage tests will be added.
Related to: https://github.com/microsoft/picologging/issues/124 ```py import queue import picologging from picologging.handlers import QueueHandler, QueueListener logger = picologging.Logger("test", picologging.DEBUG) q = queue.Queue() handler = QueueHandler(q) logger.addHandler(handler) logger.debug("test") logger.debug("test") q.get(block=False) record = q.get(block=False)...