Mega commit that switches from PastlyLogger to std logging
Created by: pastly
May have some runtime bugs still. Needs a little more testing
Verify:
-
all warn(
replaced withwarning(
(find sbws tests -type f -name '*.py' | xargs grep -F warn\(
is very helpful) -
all notice(
replaced with something (probablyinfo(
) -
it's named log
notlogger
-
all log calls have the right number of %s
(and related) replacement strings. PastlyLogger worked differently andlog.debug('hello', name)
would work, but needs to be replaced withlog.debug('hello %s', name)
.
Change:
-
create a config.log.ini
file in~/.sbws
-
update documentation to say that the log config files get read too and they get put into the same structure as the rest of the config -
remove/update log level argument parsing -
use more standard method of exception logging