Sometimes there is a frequently occurring logging message on a IOS device you do not want to be send to a syslog server, either because there is no workaround for this issue, or you simply can not upgrade an IOS at the moment. Like this:
09:14:05 MET: %PLATFORM_ENV-1-FRU_PS_ACCESS: FRU Power Supply is not responding (switch)
It is possible to write a logging discriminator that drops the message, and does not send to syslog server:
conf t
!
logging discriminator PLATFORM severity drops 1 facility drops PLATFORM mnemonics drops FRU_PS_ACCESS
!
! to disable logging to a syslog server via IP
logging host 192.0.2.10 discriminator PLATFORM
!
! to disable logging to local syslog
logging buffered discriminator PLATFORM 100000
logging console discriminator PLATFORM
logging monitor discriminator PLATFORM
!
exit