-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[tune] Introduce ability to turn off default logging. #4104
[tune] Introduce ability to turn off default logging. #4104
Conversation
Test FAILed. |
python/ray/tune/logger.py
Outdated
@@ -84,9 +85,12 @@ def __init__(self, | |||
config, | |||
logdir, | |||
upload_uri=None, | |||
use_default_loggers=True, |
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.
Would it make more sense to change the argument to loggers
instead of use_default_loggers
and then just have a default be loggers=(_JsonLogger, _TFLogger, _CSVLogger)
? You could provide a DEFAULT_LOGGERS = (_JsonLogger, _TFLogger, _CSVLogger)
, and if the user wants to add new loggers on top of the default ones, that can just do
from ray.tune.logger import DEFAULT_LOGGERS
unified_logger = UnifiedLogger(..., loggers=(*DEFAULT_LOGGERS, custom_logger), ...)
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.
That way could also get rid of the custom_loggers
and just have a single loggers argument.
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.
oh I see; yeah let me make this change.
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Merged as - lint + relevant travis tests passed; jenkins won't pass but tested locally. |
Test FAILed. |
Closes #4078.