Its possible to logg a particular set of IPs say 200.200.xxx.1 and 200.200.xxx.2 when ever it sends are receives any packet to our routers.
Thanks in advance
Your original post was realtaed to logs if particular ip hits your machine or move out from your machine for which James already answered.
If you are talking of system logs messages I mean logs which are generated on switches and how it can be logged and what are different levels of logging level and how you can set the logging levels for different levels of logs you can go through this link
For CATOS switches
logging source-interface command which you configured has a different significance
It specify the source IP address of syslog packets. When you configure your switch to send all the logs to syslog server this command will log the messages in your syslog server with source interface as dialer 0.
Normally, a syslog message contains the IP address of the interface it uses to leave the router. The logging source-interface command specifies that syslog packets contain the IP address of a particular interface, regardless of which interface the packet uses to exit the router.
Check this link for some more details on command which you configured and some other logging command with its user guidlines
Hope that helps - pls rate the post if it does.