To enable, disable, or modify system logging to the switch's log buffer, console, current Telnet session,
or trace buffer, use the following command:
set log {buffer | console | current | sessions | trace} [severity severity-level]
[enable | disable]
To configure system logging to a syslog server, use the following command:
set log server ip-addr [port port-number] severity severity-level
[local-facility facility-level]
To enable periodic mark messages for use in troubleshooting, use the following command:
set log mark [enable | disable] [severity level] [interval interval]
To view log entries in the system or trace buffer, use the following command:
show log buffer | trace
To clear log messages from the system or trace buffer, use the following command:
clear log buffer | trace
To stop sending messages to a syslog server, use the following command:
clear log server ip-addr
The system log consists of rolling entries stored as a last-in first-out queue maintained by the switch.
Logging to the buffer is enabled by default for events at the error level and higher.
To modify settings to another severity level, use the following command:
set log buffer severity severity-level
For example, to set logging to the buffer for events at the warning level and higher, type the following
command:
DWS-1008# set log buffer severity warning
success: change accepted.
D-Link DWS-1008 User Manual
Using Log Commands
Logging to the Log Buffer
1