class composer.loggers.ConsoleLogger(log_interval='1ep', stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, log_traces=False)[source]#

Log metrics to the console.


This logger is automatically instantiated by the trainer via the log_to_console, and console_stream options. This logger does not need to be created manually.

  • log_interval (int | str | Time) โ€“ How frequently to log to console. (default: '1ep')

  • stream (str | TextIO, optional) โ€“ The console stream to use. If a string, it can either be 'stdout' or 'stderr'. (default: sys.stderr)

  • log_traces (bool) โ€“ Whether to log traces or not. (default: False)