@@ -1094,23 +1094,23 @@ def __init__(
1094
1094
1095
1095
if any (isinstance (x , ProgressBarLogger ) for x in loggers ):
1096
1096
warnings .warn (
1097
- DeprecationWarning (
1098
- ( f'Specifying the { ProgressBarLogger .__name__ } via `loggers` is deprecated. Instead, '
1099
- 'please specify `progress_bar`, `console_stream` and `log_traces` arguments when '
1100
- 'constructing the trainer. If specified, these arguments will be ignored, as the '
1101
- f' { ProgressBarLogger .__name__ } was already created .' )))
1097
+ Warning ( (
1098
+ f'Specifying the { ProgressBarLogger .__name__ } via `loggers` is not recommended as '
1099
+ 'any values set for the following Trainer arguments will be ignored: `progress_bar`, `console_stream`, or `log_traces`. '
1100
+ 'The recommended way of enabling a progress bar is to set `progress_bar` to True instead of '
1101
+ f'constructing a { ProgressBarLogger .__name__ } instance .' )))
1102
1102
else :
1103
1103
if progress_bar :
1104
1104
loggers .append (ProgressBarLogger (stream = console_stream , log_traces = log_traces ))
1105
1105
1106
1106
# Console Logging
1107
1107
if any (isinstance (x , ConsoleLogger ) for x in loggers ):
1108
1108
warnings .warn (
1109
- DeprecationWarning ((
1110
- f'Specifying the { ConsoleLogger .__name__ } via `loggers` is deprecated. Instead, '
1111
- 'please specify `log_to_console`, `console_stream`, `console_log_interval `, and `log_traces` arguments when '
1112
- 'constructing the trainer. If specified, these arguments will be ignored, as the '
1113
- f'{ ConsoleLogger .__name__ } was already created .' )))
1109
+ Warning ((
1110
+ f'Specifying the { ConsoleLogger .__name__ } via `loggers` is not recommended as '
1111
+ 'any values set for the following Trainer arguments will be ignored: `log_to_console`, `console_stream`, `log_traces `, and `console_log_interval`. '
1112
+ 'The recommended way of enabling a console logging is to set `log_to_console` to True instead of '
1113
+ f'constructing a { ConsoleLogger .__name__ } instance .' )))
1114
1114
else :
1115
1115
if log_to_console :
1116
1116
loggers .append (
0 commit comments