Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Is there any tool to pre-colorize the log file? Commented Jul 28, 2012 at 14:21
  • I was thinking along the lines of ccze -A LOG > SOME_FILE. Perhaps executed in a cron job. Commented Jul 28, 2012 at 14:26
  • What do you need it for, does it have to output ANSI sequences? I usually use vim for log viewing, it has good syntax highlighting. Just tested it on a 7 MB log file with no noticable lag. Commented Jul 28, 2012 at 14:52
  • :se ft=sql doesn't make me happy when viewing /var/log/mysqld.log. Commented Jul 28, 2012 at 15:07
  • 1
    Here is an adapted syntax/messages.vim, pretty simple syn match only. Fetch it here, put it into ~/.vim/syntax and run :set ft=mysqllog. Commented Jul 28, 2012 at 22:47