sponsor Vim development Vim logo Vim Book Ad

log4j.vim : Adds syntax highlighting for log4j and log4php log files

 script karma  Rating 8/15, Downloaded by 2139  Comments, bugs, improvements  Vim wiki

created by
Andrei Nicholson
script type
Adds syntax highlighting for log4j and log4php log files. Initially created to solve log4php syntax highlighting.

install details
Copy log4j.vim into your ~/.vim/syntax directory. Because there is no reliable method of detecting log files generated from log4j/log4php, you can output log files have a .log extension and add the following to your ~/.vimrc file to trigger the syntax highlighting:

autocmd BufRead,BufNewFile *.log set syntax=log4j

If renaming log file extensions is not possible or desirable you can specify the exact name or pattern for the log files:

autocmd BufRead,BufNewFile program_log set syntax=log4j

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tetsuo13-Vim-log4j-0.3-0-g0e0654d.zip 0.3 2012-07-07 6.0 Andrei Nicholson Handle periods in logger name
tetsuo13-Vim-log4j-0.2-0-g97df89f.zip 0.2 2012-06-23 6.0 Andrei Nicholson Logger names can contain things other than letters
tetsuo13-Vim-log4j-0.1-0-gc88aeac.zip 0.1 2012-06-22 6.0 Andrei Nicholson Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.