wiki:LogView

Logview

command-line watch Pepper's logs with text highlighting

  • logview
    
    watches and prints all logs in /var/log/naoqi/ with colored date, time and errors
  • logview dialog
    
    filter and highlight log parts related to dialog (see the source code for specifics)
  • logview detect
    
    filter and highlight log parts related to person detection (see the source code for specifics)
  • logview -f coming -f mov\\w+,brightred -k
    
    highlight log parts containing the text coming (case insensitive, in default yellow) or (sub)words starting with mov in bright red. Non-filter texts are also displayed (-k)
  • logview -t
    
    show also a few last lines before start

Installation

Source code is in gitlab.

The tool is in Perl. It needs a perl module File::Tail from CPAN. Easy installation with Pepper:

cpan File::Tail
Last modified 18 months ago Last modified on Feb 8, 2019, 2:22:12 PM