a2a44bf304dae401c19fd2df3d647a205f528fcb,ilastik/ilastik_logging/default_config.py,,init,#Any#Any#Any#,227
Before Change
output_mode = OutputMode.CONSOLE
// Start with the default
logging.config.dictConfig( get_default_config( format_prefix, output_mode, logfile_path ) )
// Update from the user"s customizations
loggingHelpers.updateFromConfigFile()
After Change
output_mode = OutputMode.CONSOLE
// Preserve pre-existing handlers
original_root_handlers = list(logging.getLogger().handlers)
// Start with the default
default_config = get_default_config( format_prefix, output_mode, logfile_path )
logging.config.dictConfig( default_config )
// Preserve pre-existing handlers
for handler in original_root_handlers:
logging.getLogger().addHandler(handler)
// Update from the user"s customizations
loggingHelpers.updateFromConfigFile()
// Capture warnings from the warnings module
logging.captureWarnings(True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ilastik/ilastik
Commit Name: a2a44bf304dae401c19fd2df3d647a205f528fcb
Time: 2016-08-12
Author: bergs@janelia.hhmi.org
File Name: ilastik/ilastik_logging/default_config.py
Class Name:
Method Name: init
Project Name: stanfordnlp/stanza
Commit Name: bf66411f77c59a8d3dd5d9c9cbe02131df7dd6fd
Time: 2020-05-03
Author: horatio@gmail.com
File Name: stanza/__init__.py
Class Name:
Method Name:
Project Name: stanfordnlp/stanza
Commit Name: 65b6e2e70fd2eabf125819b790da7436706c7c27
Time: 2020-06-03
Author: zyh@stanford.edu
File Name: stanza/models/_training_logging.py
Class Name:
Method Name: