Loggers#

Module with loggers.

Implementation of global logger tslogger is inspired by loguru.

Examples

>>> from etna.loggers import tslogger, ConsoleLogger
>>> tslogger.add(ConsoleLogger())
0

Notes

Global objects behavior could be different while parallel usage because platform dependent new process start. Be sure that new process is started with fork. If it’s not possible you should try define all globals before if __name__ == "__main__" scope.

API details#

Loggers:

ConsoleLogger([table])

Log any events and metrics to stderr output.

LocalFileLogger(experiments_folder[, ...])

Logger for logging files into local folder.

S3FileLogger(bucket, experiments_folder[, ...])

Logger for logging files into S3 bucket.

WandbLogger([name, entity, project, ...])

Weights&Biases logger.

There is global object tslogger that can be imported. It has a class:

_Logger()

Composite for loggers.