https://github.com/utility-libraries/common-logging-py
python logging handler to fix the problem of your program having multiple instances and logging to the same file
https://github.com/utility-libraries/common-logging-py
Last synced: 5 months ago
JSON representation
python logging handler to fix the problem of your program having multiple instances and logging to the same file
- Host: GitHub
- URL: https://github.com/utility-libraries/common-logging-py
- Owner: utility-libraries
- License: mit
- Created: 2024-06-26T18:04:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T18:17:51.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T09:08:46.869Z (about 1 year ago)
- Language: Python
- Homepage: https://pypi.org/project/common-logging
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# common-logging
python logging handler to fix the problem of your program having multiple instances and logging to the same file
planned is something along the lines of
```python
import logging
from commonlogging import CommonLoggingHandler
APPLICATION_PORT=12345
logging.basicConfig(
handlers=[
CommonLoggingHandler(port=12345, handler=logging.FileHandler("file.log"))
]
)
```