'This method will log information to the local syslog facility'

def log(self, entry):

    if self.logging:
        syslog.openlog(('ansible-%s' % self.module._name))
        syslog.syslog(syslog.LOG_NOTICE, entry)
