-
Notifications
You must be signed in to change notification settings - Fork 321
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
Update logs to write to CSV #2005
Conversation
d764c6e
to
fd1042a
Compare
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.
Left some comments but open to discuss them.
sdv/logging/sdv_logger_config.yml
Outdated
@@ -4,24 +4,28 @@ loggers: | |||
SingleTableSynthesizer: | |||
level: INFO | |||
propagate: false | |||
format: CSV |
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.
the standard config for logging has the formatter
key word which can be specified under the handler section. https://docs.python.org/3/library/logging.config.html#dictionary-schema-details
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.
LGTM!
Sample logfile: INFO,Instance,2024-05-15 14:35:34.602861,HMASynthesizer,HMASynthesizer_1.12.2.dev0_6dc42d45ad6044e7a46308596db128ed,,, |
Resolve #1974
CU-86b094e79