C3560#config t
C3560(config)#logging on
C3560(config)#logging host 192.168.210 //日志服务器的IP地址
C3560(config)#logging facility local0 //日志临时存储位置
C3560(config)#logging origin-id {hostname|ip|string}
C3560(config)#logging trap 3 //日志记录级别
C3560(config)#logging source-interface bvi 1 //日志发出用的源IP地址
C3560(config)#service timestamps debug datetime localtime //日志记录的时间戳设置,可根据需要具体配置
C3560(config)#service timestamps log datetime localtime