-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIU-65: Generate individual log files per session. #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks :) I left two very very minor comments, feel free to disregard them if you want, then go ahead with the merge.
return False | ||
|
||
fmt = '%(asctime)-15s [%(levelname)5.5s] [%(threadName)15.15s] ' | ||
fmt += '[%(session_id)10.10s] [%(drop_uid)10.10s] ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I'd remove appending the session_id, as it's already in the name of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if hasattr(record, 'session_id'): | ||
return record.session_id == self.sessionId | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe simpler to use return getattr(record, 'session_id', None) == self.sessionId
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
LIU-65: Generate individual log files per session.
Generate individual log files per session and propagates default/user specified log file location.