Skip to content

python logging handler to fix the problem of your program having multiple instances and logging to the same file

License

Notifications You must be signed in to change notification settings

utility-libraries/common-logging-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"))
    ]
)

About

python logging handler to fix the problem of your program having multiple instances and logging to the same file

Resources

License

Stars

Watchers

Forks

Languages