**Step 2**
| \[no\] logging server host \[severity-level \[use-vrf vrf-name\]\]
```
switch(config)# logging server 192.0.2.253
```
```
switch(config)# logging server 2001::3 5 use-vrf red
```
| Configures a syslog server at the specified hostname, IPv4, or IPv6 address. You can specify logging of messages to a particular syslog server in a VRF by using the use-vrf keyword. The use-vrf vrf-name keyword identifies the default or management values for the VRF name. The default VRF is the management VRF, by default. However, the show-running command will not list the default VRF. Severity levels range from 0 to 7:
- 0 – emergency
- 1 – alert
- 2 – critical
- 3 – error
- 4 – warning
- 5 – notification
- 6 – informational
- 7 – debugging
The default outgoing facility is local7.
The no option removes the logging server for the specified host.
The first example forwards all messages on facility local 7. The second example forwards messages with severity level 5 or lower to the specified IPv6 address in VRF red.
|