Previous page Next page

service timestamps log

Enables timestamps on log messages.

Syntax
service timestamps log [uptime | datetime [msec] [show-timezone] ] 
 
no service timestamps log
 
Prerequisites

Must be in configuration mode (config), which requires privileged-level access.

Occurrence

Use once.

Default

Timestamps are enabled as:

service timestamps log datetime
 

 
Description

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.


Previous page Next page