Major mode with intepretting miscellaneous time format
Emacs Lisp Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
Makefile
README.md
smart-log-test.el
smart-log.el

README.md

smart-log.el

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