Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

About

Major mode with intepretting miscellaneous time format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published