summaryrefslogtreecommitdiff
path: root/src/leap/util
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-12 14:31:56 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-12 14:31:56 -0300
commita264941d619f1c03e11326fc606c719b8d43e052 (patch)
tree5b3576e650be13ac988620607d0ccac3b5fa90a2 /src/leap/util
parent5c22d5cc2af8693592670b1838a42511bdfeaf3c (diff)
parent0cc747fbe97b7015e51504949546b47e2b110a68 (diff)
Merge remote-tracking branch 'ivan/feature/improve-loggerwindow-colors' into develop
Diffstat (limited to 'src/leap/util')
-rw-r--r--src/leap/util/leap_log_handler.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/leap/util/leap_log_handler.py b/src/leap/util/leap_log_handler.py
index 271096d3..9adb21a5 100644
--- a/src/leap/util/leap_log_handler.py
+++ b/src/leap/util/leap_log_handler.py
@@ -52,22 +52,7 @@ class LogHandler(logging.Handler):
:param logging_level: the debug level to define the color.
:type logging_level: str.
"""
- html_style = {
- 'DEBUG': "color: blue",
- 'INFO': "color: black",
- 'WARNING': "color: black; background: yellow;",
- 'ERROR': "color: red",
- 'CRITICAL': "color: red; font-weight: bold;"
- }
-
- style_open = "<span style='" + html_style[logging_level] + "'>"
- style_close = "</span>"
- time = "%(asctime)s"
- name = style_open + "%(name)s"
- level = "%(levelname)s"
- message = "%(message)s" + style_close
- format_attrs = [time, name, level, message]
- log_format = ' - '.join(format_attrs)
+ log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
formatter = logging.Formatter(log_format)
return formatter