cfg.add_argument(
'--logging_filename_count',
type=int,
- default=2,
+ default=7,
metavar='COUNT',
help='The number of logging_filename copies to keep before deleting.'
)
default=False,
help='Should we prepend pid/tid data to all log messages?'
)
+cfg.add_argument(
+ '--logging_debug_modules',
+ action=argparse_utils.ActionNoYes,
+ default=False,
+ help='Should we prepend module/function data to all log messages?'
+)
cfg.add_argument(
'--logging_info_is_print',
action=argparse_utils.ActionNoYes,
fmt = config.config['logging_format']
if config.config['logging_debug_threads']:
fmt = f'%(process)d.%(thread)d|{fmt}'
+ if config.config['logging_debug_modules']:
+ fmt = f'%(filename)s:%(funcName)s:%(lineno)s|{fmt}'
if config.config['logging_syslog']:
if sys.platform not in ('win32', 'cygwin'):