tardis.io.logger.logger module
- class tardis.io.logger.logger.FilterLog(log_level)[source]
Bases:
objectFilter Log Class for Filtering Logging Output to a particular level
- Parameters
- log_levellogging object
allows to have a filter for the particular log_level
- filter(log_record)[source]
filter() allows to set the logging level for all the record that are being parsed & hence remove those which are not of the particular level
- Parameters
- log_recordlogging.record
which the paricular record upon which the filter will be applied
- Returns
- booleanTrue, if the current log_record has the
level that of the specified log_level False, if the current log_record doesn’t have the same log_level as the specified one
- tardis.io.logger.logger.logging_state(log_state, tardis_config, specific)[source]
Function to set the logging configuration for the simulation output Called from within run_tardis() Configured via functional arguments passed through run_tardis() - log_state & specific Configured via YAML parameters under
debugsection - logging_level & specific_logging Parameters ———- log_state: strAllows to input the log level for the simulation Uses Python logging framework to determine the messages that will be output
- specific: boolean
Allows to set specific logging levels. Logs of the
log_statelevel would be output.