[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] mode (?) for log4j files, to colorize ERROR messages
From: |
Ken Goldman |
Subject: |
Re: [h-e-w] mode (?) for log4j files, to colorize ERROR messages |
Date: |
Fri, 29 Oct 2004 08:59:37 -0400 |
> Date: Thu, 28 Oct 2004 11:25:15 -0400
> From: "Glen Cordrey" <address@hidden>
>
> Does anyone have a mode (if that's what's needed) for editing log4j log
> files? What I'm looking for is something that will simply
> make all log4j messages of severity ERROR appear in red font when I edit
> a log4j log file.
>
> Glen
I don't know how to define my own faces, so I just reused others that
were already defined. Put this in your .emacs and edit to taste.
; log4j mode
(define-generic-mode 'log4j-mode
'("#")
'("WARN" "INFO" "DEBUG")
'(
("ERROR" . 'font-lock-warning-face)
("INFO" . 'font-lock-constant-face)
("FATAL" . 'paren-face-mismatch)
)
'(".log4j\\'")
nil
"Major mode for editing log4j logs")
--
Ken Goldman address@hidden 914-784-7646