| | 1 | [[PageOutline]] |
| | 2 | |
| | 3 | = OpenWrt Logging = |
| | 4 | The {{{logger}}} application provided by busybox can send messages to the system log: |
| | 5 | {{{ |
| | 6 | logger foo |
| | 7 | logger -s foo # log to system log and console |
| | 8 | logger -t tag # log with a specific tag (defaults to user name) |
| | 9 | }}} |
| | 10 | |
| | 11 | To access the '''system log''' you need a utility such as '''syslogd''' or '''logread''' (also provided by busybox): |
| | 12 | * syslogd - daemon that runs in the background that can direct system log to a file (defaults to /var/log/messages) and/or the network |
| | 13 | * logread - application that will dump the current system log ring buffer: |
| | 14 | {{{ |
| | 15 | logread # dump the current system log ring buffer |
| | 16 | logread -f # dump all new messages to the system log |
| | 17 | }}} |