How to use the daiquiri.handlers function in daiquiri

To help you get started, we’ve selected a few daiquiri examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jd / daiquiri / daiquiri / output.py View on Github external
raise TypeError('syslog facility must be one of: %s' %
                            ', '.join("'%s'" % fac
                                      for fac in valid_facilities))

        return getattr(syslog, facility)


preconfigured = {
    'stderr': STDERR,
    'stdout': STDOUT,
}

if syslog is not None:
    preconfigured['syslog'] = Syslog()

if handlers.journal is not None:
    preconfigured['journal'] = Journal()