Made fonts smaller for date and hidden parts to avoid frequent line wrapping and reduce noise. highlight ISO date without year.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 22 Sep 2020 15:47:42 +0300
changeset 1624 cdee4c5847b9
parent 1623 66e7dd2d4cf4
child 1625 ceaee5c146cc
Made fonts smaller for date and hidden parts to avoid frequent line wrapping and reduce noise. highlight ISO date without year.
log4-hi-mode.el
--- a/log4-hi-mode.el	Tue Sep 22 15:02:30 2020 +0300
+++ b/log4-hi-mode.el	Tue Sep 22 15:47:42 2020 +0300
@@ -31,12 +31,12 @@
   :group 'log4-hi)
 
 (defface log4-hi-time-face
-  '((t :inherit font-lock-builtin-face))
+  '((t :inherit font-lock-builtin-face :height 0.7))
   "Face for time."
   :group 'log4-hi)
 
 (defface log4-hi-hide-face
-  '((t :inherit shadow))
+  '((t :inherit shadow :height 0.7 :family "Arial"))
   "Face for extra text for hiding."
   :group 'log4-hi)
 
@@ -50,7 +50,7 @@
   "Highlight regex for line from Java stack trace.")
 
 (defvar log4-hi-time-keywords
-  '(("\\(:?[0-9]\\{2\\}?[0-9]\\{2\\}.[0-9]\\{2\\}.[0-9]\\{2\\}.\\|\\<\\)[0-9]?[0-9]:[0-9][0-9]:[0-9][0-9]\\>\\(:?\\.[0-9]\\{3\\}\\)?" . 'log4-hi-time-face))
+  '(("\\(:?\\(:?[0-9]\\{2\\}?[0-9]\\{2\\}.\\)?[0-9]\\{2\\}.[0-9]\\{2\\}.\\|\\<\\)[0-9]?[0-9]:[0-9][0-9]:[0-9][0-9]\\>\\(:?\\.[0-9]\\{3\\}\\)?" . 'log4-hi-time-face))
   "Highlight regex for ISO date.")
 
 (defvar log4-hi-hide-regex