Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 399 Bytes

File metadata and controls

17 lines (13 loc) · 399 Bytes

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

import logging
from commonlogging import CommonLoggingHandler

APPLICATION_PORT=12345

logging.basicConfig(
    handlers=[
        CommonLoggingHandler(port=12345, handler=logging.FileHandler("file.log"))
    ]
)