pydocstyle for log.py
# -*- coding: utf-8 -*-
+"""Module for up logging set up."""
+
import logging
import sys
@@ -18,6 +20,11 @@ LOG_FORMATS = {
def configure_logger(stream_level='DEBUG', debug_file=None):
+ """Configure logging for cookiecutter.
+
+ Set up logging to stdout with given level and with DEBUG level for loggin
+ to file if debug_file given
+ """
# Set up 'cookiecutter' logger
logger = logging.getLogger('cookiecutter')
logger.setLevel(logging.DEBUG)
