wiki:OpenWrt/logging

OpenWrt Logging

The logger application provided by busybox can send messages to the system log:

logger foo
logger -s foo # log to system log and console
logger -t tag # log with a specific tag (defaults to user name)

To access the system log you need a utility such as syslogd or logread (also provided by busybox):

  • syslogd - daemon that runs in the background that can direct system log to a file (defaults to /var/log/messages) and/or the network
  • logread - application that will dump the current system log ring buffer:
    logread # dump the current system log ring buffer
    logread -f # dump all new messages to the system log
    
Last modified 2 years ago Last modified on 08/03/15 15:52:12