Remote syslog using python

This is quite handy way of sending informative or debug level message to a remote syslog server. And it is quite easy. Here is the basic code

import logging
import logging.handlers

mkaLogger = logging.getLogger('mkaMontior')
mkaLogger.setLevel(logging.INFO)
handler = logging.handlers.SysLogHandler(address = ('192.168.1.3',514))
mkaLogger.addHandler(handler)
mkaLogger.info("Hello !")