threeML.io.logging module

class threeML.io.logging.LoggingState(threeML_usr_log_handler, threeML_console_log_handler, astromodels_usr_log_handler, astromodels_console_log_handler)[source]

Bases: object

debug_logs()[source]
loud_logs()[source]
restore_last_state()[source]
silence_logs()[source]
threeML.io.logging.activate_logs()[source]

re-activate silenced logs

threeML.io.logging.activate_progress_bars()[source]

Turn on the progress bars

threeML.io.logging.activate_warnings()[source]

supress warning messages in console and file usr logs

threeML.io.logging.debug_mode()[source]

activate debug in the console

threeML.io.logging.get_path_of_log_dir() Path[source]

get the path to the logging directory

threeML.io.logging.get_path_of_log_file(log_file: str) Path[source]

returns the path of the log files

threeML.io.logging.invalid_plugin_name(name: str, log: Logger) None[source]
threeML.io.logging.loud_mode()[source]

turn on all progress bars and logging

threeML.io.logging.quiet_mode()[source]

turn off all logging and progress bars

threeML.io.logging.setup_logger(name: str) Logger[source]
threeML.io.logging.silence_console_log(and_progress_bars=True)[source]

temporarily silence the console and progress bars

threeML.io.logging.silence_logs()[source]

Turn off all logging

threeML.io.logging.silence_progress_bars()[source]

Turn off the progress bars

threeML.io.logging.silence_warnings()[source]

supress warning messages in console and file usr logs

threeML.io.logging.toggle_progress_bars()[source]

toggle the state of the progress bars

threeML.io.logging.update_logging_level(level)[source]

update the logging level to the console