KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a python log config file with a filehandler of the below form. [handler_filelog] class: FileHandler args = ('/var/tmp/log/client.log','a') Instead, I need it in the below form (dynamically generated path). [handler_filelog] class: FileHandler args = ('/var/tmp/log_<unique_string>/client.log','a') Multiple instances of the program may be running and hence non-conflicting log paths and files are to be used. The logger once setup need not change till end of program execution. Is there a way to handle this using the config file approach? I am not keen on resorting to creating the loggers/handlers/formatters by myself since my log config file has many of these and config file based approach is much nicer. (Update: I am using python 2.4)
Tags (comma-separated)
Save Edits
Cancel