Log to a File
To send debugging output to a file:
1. Use the log file command and specify the path and file name where the information is to be logged.
When logging to a file, you can simultaneously log to stdout by using the terminal monitor command.
2. Use the no form of the command to turn off logging to a file:
(config)# no log file (filename)
Last modified date: 06/16/2023