Log Information to a Router Console
Action
To log messages to a router console, follow these steps:
- In configuration mode, go to the following hierarchy level:[edit]user@host# edit system syslog
-
Configure the router console, facility, and level:user@host# set console facility level
For example:
[edit system syslog] user@host# set console any error - Verify the configuration:user@host# show
For example:
[edit system syslog] user@host# show consoleany error - Commit the configuration:user@host# commit
For information on logging facilities and security levels supported by the JUNOS software, see JUNOS System Logging Facilities and System Log Message Severity Levels.