|
|
|
Enables timestamps on log messages.
service timestamps log [uptime | datetime [msec] [show-timezone] ] no service timestamps log
Must be in configuration mode (config), which requires privileged-level access.
service timestamps log datetime
Use the uptime keyword to record the number of elapsed seconds since the last reboot.
Use the datetime keyword to record the date and time of the message. If you include the msec modifier, the timestamp will specify time to the millisecond.
If you use the show-timezone keyword, the time zone will be identified in the timestamp.
If neither uptime nor datetime keywords are specified, datetime is assumed.
The no service timestamps log command resets timestamps to the default.
|
|
|