Made fonts smaller for date and hidden parts to avoid frequent line wrapping and reduce noise. highlight ISO date without year.
--- 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