Skip to content

Conversation

tvdboom
Copy link
Collaborator

@tvdboom tvdboom commented Jun 8, 2021

Related Issuse or bug

  • Enhancement: If experiment_name=None, don't create a log file.

Describe the changes you've made

create_logger returns a dummy logger (does nothing when class.info is called) if name=None. This approach leaves the rest of the code untouched.

@tvdboom tvdboom requested a review from Yard1 June 8, 2021 19:03
@pycaret
Copy link
Collaborator

pycaret commented Jun 8, 2021

Hi. Can we separate the system logging parameter from log_experimemt. Lets create a new parameter called system_log (default to True). The use-case for both these loggers are different.

@tvdboom
Copy link
Collaborator Author

tvdboom commented Jun 9, 2021

I added the system_log parameter to (I think) all the setup functions and to the docstrings. Is it automatically added to the documentation as well?

@Yard1
Copy link
Member

Yard1 commented Jun 9, 2021

Yes, the docs are auto updated. Could we actually make it so that system_log param can take a Logger object too (will be used instead of create_logger)? That way all use cases will be covered.

Copy link
Member

@Yard1 Yard1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is great

@tvdboom tvdboom merged commit 16c2b23 into time_series Jun 9, 2021
@tvdboom tvdboom deleted the no_logging_option branch June 9, 2021 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants