+ logger.debug(f'Initialized logger; default logging level is {default_logging_level}.')
+ if config.config['logging_clear_spammy_handlers'] and spammy_handlers > 0:
+ logger.warning(
+ 'Logging cleared {spammy_handlers} global handlers (--logging_clear_spammy_handlers)'
+ )
+ logger.debug(f'Logging format is "{fmt}"')
+ if config.config['logging_syslog']:
+ logger.debug(f'Logging to syslog as {facility_name} with normal severity mapping')
+ if config.config['logging_filename']:
+ logger.debug(f'Logging to filename {config.config["logging_filename"]} with rotation')
+ if config.config['logging_console']:
+ logger.debug(f'Logging to the console.')
+ if config.config['logging_info_is_print']:
+ logger.debug(
+ 'Logging logger.info messages will be repeated on stdout (--logging_info_is_print)'
+ )
+ if config.config['logging_squelch_repeats_enabled']:
+ logger.debug(
+ 'Logging code is allowed to request repeated messages be squelched (--logging_squelch_repeats_enabled)'
+ )
+ if config.config['logging_probabilistically_enabled']:
+ logger.debug(
+ 'Logging code is allowed to request probabilistic logging (--logging_probabilistically_enabled)'
+ )
+ if config.config['lmodule']:
+ logger.debug(
+ 'Logging dynamic per-module logging enabled (--lmodule={config.config["lmodule"]})'
+ )
+ if config.config['logging_captures_prints']:
+ logger.debug('Logging will capture printed messages (--logging_captures_prints)')