ansible-later/testenv/lib/python2.7/site-packages/anyconfig/init.py
2019-04-23 13:04:27 +02:00

24 lines
589 B
Python

#
# Copyright (C) 2015 Satoru SATOH <ssato @ redhat.com>
# License: MIT
#
# suppress warning about the name of 'getLogger':
# pylint: disable=invalid-name
"""anyconfig module initialization before any other things.
"""
import logging
import anyconfig.compat
def getLogger(name="anyconfig"):
"""
See: "Configuring Logging for a Library" in python standard logging howto,
e.g. https://docs.python.org/2/howto/logging.html#library-config.
"""
logger = logging.getLogger(name)
logger.addHandler(anyconfig.compat.NullHandler())
return logger
# vim:sw=4:ts=4:et: