Log Date-Format - Allied Telesis AR2050V Command Reference Manual

Secure, for alliedware plus version 5.4.7-1.x
Table of Contents

Advertisement

L
C
OGGING
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.
log date-format {iso|default}
Syntax
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#
awplus(config)#
To return to the default date format of YYYY MMM DD HH:MM:SS, use the
commands:
awplus#
awplus(config)#
Related
show exception log
Commands
show log
show log permanent
Command
Version 5.4.6-2.1: command added
changes
C613-50186-01 Rev B
Parameter
Description
iso
Display the date and time in the ISO 8601 compliant format of:
YYYY-MM-DDThh:mm:ssTZD
Display the date and time in the default date format of 
default
YYYY MMM DD HH:MM:SS
configure terminal
log date-format iso
configure terminal
log date-format default
Command Reference for AR2050V
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
301

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents