# Path: feet/config.py
# class RedisConfiguration(Configuration):
# class ServerConfiguration(Configuration):
# class MecabConfiguration(Configuration):
# class FeetConfiguration(Configuration):
#     CONF_PATHS = [
#         "/etc/feet.yaml",  # System configuration
#         os.path.expanduser("~/.feet.yaml"),  # User specific config
#         os.path.abspath("conf/feet.yaml"),  # Local configuration
#     ]
# 
# Path: feet/utils/timez.py
# ISO8601_DATETIME = "%Y-%m-%dT%H:%M:%S%z"


import logging
import getpass
import warnings
import logging.config
from feet.config import settings
from feet.utils.timez import ISO8601_DATETIME
            'handlers': ['logfile', 'console'],
            'propagate': False,
        },
        'tornado.access': {
            'level': settings.loglevel,
            'handlers': ['logfile', 'console'],
            'propagate': False
        }
    },
}

logging.config.dictConfigClass(configuration).configure()
if not settings.debug:
    logging.captureWarnings(True)


class WrappedLogger(object):
    """
    Wraps the Python logging module's logger object to ensure that all feet
    logging happens with the correct configuration as well as any extra
    information that might be required by the log file (for example, the user
    on the machine, hostname, IP address lookup, etc).

    Subclasses must specify their logger as a class variable so all instances
    have access to the same logging object.
    """

    logger = None

    def __init__(self, **kwargs):

# Path: feet/config.py
# class RedisConfiguration(Configuration):
# class ServerConfiguration(Configuration):
# class MecabConfiguration(Configuration):
# class FeetConfiguration(Configuration):
#     CONF_PATHS = [
#         "/etc/feet.yaml",  # System configuration
#         os.path.expanduser("~/.feet.yaml"),  # User specific config
#         os.path.abspath("conf/feet.yaml"),  # Local configuration
#     ]
# 
# Path: feet/utils/timez.py
# ISO8601_DATETIME = "%Y-%m-%dT%H:%M:%S%z"


# Path: feet/utils/logger.py
import logging
import getpass
import warnings
import logging.config
from feet.config import settings
from feet.utils.timez import ISO8601_DATETIME

            'handlers': ['logfile', 'console'],
            'propagate': False,
        },
        'tornado.access': {
            'level': settings.loglevel,
            'handlers': ['logfile', 'console'],
            'propagate': False
        }
    },
}

logging.config.dictConfigClass(configuration).configure()
if not settings.debug:
    logging.captureWarnings(True)


class WrappedLogger(object):
    """
    Wraps the Python logging module's logger object to ensure that all feet
    logging happens with the correct configuration as well as any extra
    information that might be required by the log file (for example, the user
    on the machine, hostname, IP address lookup, etc).

    Subclasses must specify their logger as a class variable so all instances
    have access to the same logging object.
    """

    logger = None

    def __init__(self, **kwargs):

        self.raise_warnings = kwargs.pop('raise_warnings', settings.debug)