logging timestamp

Use this command to set the logging timestamp granularity.

Use the no form of this command to reset the logging timestamp granularity to its default (milliseconds).

 

  • Any change in timestamp configurations will result in timestamp configured for event logged by protocol modules except for CLI history for the current and active sessions. The timestamp configuration is reflected in CLI history for new CLI sessions.
  • Changing logging timestamp will be taken into effect for the next OcNOS session.

Command Syntax

Copy
logging timestamp (microseconds|milliseconds|seconds|none)
no logging timestamp

Parameters

microseconds

Microseconds granularity

milliseconds

Milliseconds granularity

seconds

Seconds granularity

none

No timestamp in log message

Default

By default, logging time stamp granularity is milliseconds.

Command Mode

Configure mode

Applicability

This command was introduced before OcNOS version 1.3.

Examples

Copy
#configure terminal
(config)#logging timestamp milliseconds