wylark
/
infoex-autowx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
73b4a58
)
Add important info to stdout log output
author
Alexander Vasarab <alexander@wylark.com>
Tue, 16 Feb 2021 05:31:46 +0000
(21:31 -0800)
committer
Alexander Vasarab <alexander@wylark.com>
Tue, 16 Feb 2021 05:31:46 +0000
(21:31 -0800)
infoex-autowx.py
patch
|
blob
|
history
diff --git
a/infoex-autowx.py
b/infoex-autowx.py
index b663163f16f5c18bc31036f9fffb2307cdbc289e..4f3e99a2a6ca1bbee0550870cd5c755b0f1062d6 100755
(executable)
--- a/
infoex-autowx.py
+++ b/
infoex-autowx.py
@@
-155,6
+155,10
@@
def setup_logging(log_level):
#LOG.addHandler(logging.handlers.SysLogHandler())
# fallback to stdout
handler = logging.StreamHandler(sys.stdout)
+ formatter = logging.Formatter('%(asctime)s.%(msecs)03d '
+ '%(levelname)s %(module)s - %(funcName)s: %(message)s',
+ '%Y-%m-%d %H:%M:%S')
+ handler.setFormatter(formatter)
LOG.addHandler(handler)
# ugly, but passable