Skip to content

Commit

Permalink
Merge pull request cookiecutter#999 from meahow/pep257-log.py
Browse files Browse the repository at this point in the history
pydocstyle for log.py
  • Loading branch information
hackebrot authored Nov 25, 2017
2 parents 58da604 + c7732a9 commit 092cf2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cookiecutter/log.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-

"""Module for setting up logging."""

import logging
import sys

Expand All @@ -18,6 +20,11 @@


def configure_logger(stream_level='DEBUG', debug_file=None):
"""Configure logging for cookiecutter.
Set up logging to stdout with given level.
If debug_file is given set up logging to file with DEBUG level.
"""
# Set up 'cookiecutter' logger
logger = logging.getLogger('cookiecutter')
logger.setLevel(logging.DEBUG)
Expand Down

0 comments on commit 092cf2b

Please sign in to comment.