Commit 56e662713757e7542bfbfa5cf8d32261118f7b82
1 parent
8b0ac5fd
Exists in
master
Import coloured logs (will eventually do the obvious) and slightly improve colum…
…n headers for logging
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
robots/little_john/telemetry/code/monitor/version1/main.py
@@ -13,6 +13,7 @@ import os | @@ -13,6 +13,7 @@ import os | ||
13 | import platform | 13 | import platform |
14 | import sys | 14 | import sys |
15 | import logging | 15 | import logging |
16 | +import coloredlogs | ||
16 | 17 | ||
17 | from serialselect import selectserial | 18 | from serialselect import selectserial |
18 | from colours import * | 19 | from colours import * |
@@ -20,7 +21,9 @@ from series import Series | @@ -20,7 +21,9 @@ from series import Series | ||
20 | from plot import Plot | 21 | from plot import Plot |
21 | from getdata import getData | 22 | from getdata import getData |
22 | 23 | ||
23 | -print(' Error: Module Function Message') | 24 | +#test |
25 | + | ||
26 | +print(' Level Module Function Message') | ||
24 | # WHY WON'T THIS PRINT AT THE TOP | 27 | # WHY WON'T THIS PRINT AT THE TOP |
25 | format_string = '%(levelname)8s:\t%(module)-10s \t%(funcName)s \t%(message)s' | 28 | format_string = '%(levelname)8s:\t%(module)-10s \t%(funcName)s \t%(message)s' |
26 | logging.basicConfig(format=format_string, level=logging.DEBUG) | 29 | logging.basicConfig(format=format_string, level=logging.DEBUG) |