8e5d350ac2
Update default log dir under macOS
2021-04-06 15:52:57 -06:00
9a53d4adad
Updated log handling to support Windows
2020-04-26 16:28:23 -06:00
c7d57ff266
Fixed logging under live macOS
2020-01-30 13:07:04 -07:00
4e6b2cd4da
Started work on per-pass log handling in hw-diags
2019-11-12 17:32:55 -07:00
ee7d656f2a
Delete log atexit if empty
2019-11-10 20:47:59 -07:00
177401ecc8
Small formatting adjustment
2019-11-09 17:28:43 -07:00
ad06fab8a2
Updated log path options
...
* Adjusted default log path
* Support Windows Kit/Tool/General log paths
2019-10-02 21:34:07 -07:00
60969f26eb
Reworked setting log paths
...
* Added DEFAULT_LOG_DIR and DEFAULT_LOG_NAME vars
* Allows easier reuse of default values
* Added format_log_path()
* Uses default path/name unless dir/name specified
* Added get_root_logger_path()
* Returns the first fileHandler path found (if any)
* update_log_path() now supports multiple handler scenarios
2019-09-22 23:27:41 -07:00
f1775766e7
Updated wk.log.update_log_path()
...
* The log file is now moved instead of copied
* The new path can now be based on a new dir, name, or both
2019-09-18 20:58:06 -07:00
b41027562a
Added SafeMode enter/exit sections
2019-09-15 18:47:52 -07:00
d7fc209e53
Added some doctests
2019-09-07 15:17:54 -06:00
516dc88d44
Removed improper NotImplementedError usage
2019-08-20 19:21:44 -06:00
c43539a92d
Switching to f-strings where appropriate
2019-08-20 16:00:08 -06:00
11d9a5203e
Adjusted docstrings
2019-08-09 16:42:00 -06:00
1997cdcefd
Reordered log.py functions
2019-07-17 21:37:03 -06:00
c9d35a0e2f
Adjusted update_log_path()
...
* Should result in more uniform log names
2019-07-17 21:31:25 -06:00
36e70c48ba
Adjuested log_path under Windows
2019-07-13 17:42:44 -06:00
f30a6dd3db
Typo fix
2019-07-13 17:29:30 -06:00
8b4daa507b
Use different default log_path under Windows
2019-07-13 17:23:35 -06:00
b98397d491
Include seconds in default log name
2019-07-08 17:32:17 -06:00
ca67ed392f
Avoid clobbering existing files
2019-07-08 16:56:03 -06:00
23eda17bd3
Ensure logging is shutdown when exiting
2019-07-08 16:55:39 -06:00
acd92b3e50
Added logging functions
...
* Logging is always initialized if importing the whole package
* Support switching to DEBUG mode
* Support changing the log dir (and optionally log name)
2019-07-07 22:09:22 -06:00