aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/logging.py
Commit message (Collapse)AuthorAgeFilesLines
* Force "DEBUG" log level if env variable "DEBUG_FG21SIM" setAaron LI2016-10-171-0/+4
|
* utils/logging.py: Small updates to the docstrings and commentsAaron LI2016-10-171-14/+16
|
* utils/logging.py: Close handler before removingAaron LI2016-10-021-0/+3
|
* utils/logging.py: Save existing formatter for new handlersAaron LI2016-09-291-0/+5
| | | | | | | By saving the existing formatter and setting for the new handlers, the configured format styles are kept. Otherwise, the newly created handlers does not have a formatter, thus the default format style gets used.
* utils/logging: reset handlers before initialization/reconfigurationAaron LI2016-09-291-2/+9
| | | | Also improve the comments.
* utils/logging.py: Hack the "filemode" arg of "basicConfig()"Aaron LI2016-09-291-1/+4
| | | | | "logging.basicConfig()" does NOT accept parameter "filemode" if the corresponding paramter "filename" NOT specified.
* setup_logging(): Add parameter "level"Aaron LI2016-09-291-2/+14
| | | | Also fix a bug about parameter "stream".
* Add utility "setup_logging()" to setup/update loggingAaron LI2016-09-291-0/+70
This "setup_logging()" utility can setup the logging module with the given configuration dict, and can also update the logging configs by specify the additional parameters.