
C613-50186-01 Rev B
Command Reference for AR2050V
301
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
L
OGGING
C
OMMANDS
LOG
DATE
-
FORMAT
log date-format
Overview
Use this command to change the date format for log messages to an ISO 8601
compliant format, or to return to the default date format.
Syntax
log date-format {iso|default}
Default
The default option of YYYY MMM DD HH:MM:SS (except when using terminal
monitor, when it is HH:MM:SS)
Mode
Global Configuration
Usage
In the ISO 8601 compliant format, a T separates the date from the time, and the
time is followed by the timezone offset from UTC time. For example, this is a log
message with an ISO 8601 compliant date:
2016-09-29T08:55:43+13:00 user.notice Gateway IMISH[1983]:
[manager@ttyS0]show run
This is a log message with the default date format:
2016 Sep 29 08:55:43 user.notice Gateway IMISH[1983]:
[manager@ttyS0]show run
The date format setting affects all log messages, no matter where the messages are
stored or displayed.
Examples
To set the date format to the ISO 8601 compliant format, use the commands:
awplus#
configure terminal
awplus(config)#
log date-format iso
To return to the default date format of YYYY MMM DD HH:MM:SS, use the
commands:
awplus#
configure terminal
awplus(config)#
log date-format default
Related
Commands
Command
changes
Version 5.4.6-2.1: command added
Parameter
Description
iso
Display the date and time in the ISO 8601 compliant format of:
YYYY-MM-DDThh:mm:ssTZD
default
Display the date and time in the default date format of
YYYY MMM DD HH:MM:SS