smart-log

Homepage: https://github.com/mhayashi1120/smart-log.el

Author: Masahiro Hayashi

Updated:

Summary

View log file mode with intepretting miscellaneous time format

Commentary

## Install:

* Put the following to your .emacs:

    (autoload 'smart-log-mode "smart-log"
              "View log file mode." t)
    (autoload 'smart-log-find-file "smart-log"
              "Open huge log FILE with chunked.")

* You may want to open log file automatically `smart-log-mode', put the followings:

    ;; System log directory (on Debian)
    (add-to-list 'auto-mode-alist `("\\`/var/log/" . smart-log-mode))
    ;; djb tool
    (add-to-list 'auto-mode-alist
                 `("/@[a-f0-9]\\{24\\}\\.[su]\\'" . smart-log-mode))
    ;; General log filename and logrotated files.
    (add-to-list 'auto-mode-alist
                 '("\\.log\\(?:\\.[0-9]+\\)?\\(?:\\.\\(?:gz\\|bz2\\|xz\\)\\)?\\'"
                   . smart-log-mode))

## Usage:

* You may want to revert tail of log automatically, put the following to your .emacs:

    (setq smart-log-auto-revert-tail t)

* You can find huge log file by:

    M-x smart-log-find-file

Dependencies