log¶
Here we provide standard loggers for our pipeline. It is advised to use them instead of the print function.
-
jukeboxcore.log.setup_jukebox_logger()[source]¶ Setup the jukebox top-level logger with handlers
The logger has the name
jukeboxand is the top-level logger for all other loggers of jukebox. It does not propagate to the root logger, because it also has a StreamHandler and that might cause double output.The logger default level is defined in the constants
jukeboxcore.constants.DEFAULT_LOGGING_LEVELbut can be overwritten by the environment variable “JUKEBOX_LOG_LEVEL”Returns: None Return type: None Raises: None
-
jukeboxcore.log.get_logger(name, level=None)[source]¶ Return a setup logger for the given name
Parameters: Returns: Logger
Return type: Raises: None
The logger default level is defined in the constants
jukeboxcore.constants.DEFAULT_LOGGING_LEVELbut can be overwritten by the environment variable “JUKEBOX_LOG_LEVEL”