Configuration Guide Syslog Configuration
More flash: filename command shows the contents of the log file in the flash.
Some devices support extended FLASH. If the device has extended FLASH,
the log information will be recorded there. If the device has no extended
FLASH, the log information will be recorded in the serial FLASH.
Enabling the Log Timestamp Switch of Log Information
To add or delete timestamp in log information, run the following command in the global
configuration mode:
Ruijie(config)# service timestamps
message-type [uptime | datetime]
Enable the timestamp in the log information
Ruijie(config)# no service timestamps
message-type
Disable the timestamp in the log information
The timestamp are available in two formats: device uptime and device datetime.
Select the type of timestamp appropriately.
Message type: log or debug. The "log" type means the log information with severity
levels 0-6. The "debug" type means that with severity level 7.
If the current device has no RTC, the configured time is invalid, and the
device automatically uses the startup time as the timestamp for the log
information.
Enabling Switches in Log System
By default, the system name is not included in the log information. To add or remove
the system name in the log information, perform the following commands in the global
configuration mode.
Ruijie(config)# no service sysname
Cancel the system name in the log message.
Ruijie(config)# service sysname
Add the system name to the log message.
Enabling Log Statistics
By default, the log statistics function is disabled. To enable or disable the log statistics
function, perform the following commands in the global configuration mode.
Ruijie(config)# no logging count
Disable the log statistics function and delete the
statistics information
Ruijie(config)# logging count
Enable the log statistics function