1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
WeasyPrint/weasyprint/logger.py

23 lines
430 B
Python
Raw Normal View History

2012-01-30 20:54:51 +04:00
# coding: utf8
"""
weasyprint.logging
------------------
2012-01-30 20:54:51 +04:00
Logging setup.
2012-01-30 20:54:51 +04:00
:copyright: Copyright 2011-2012 Simon Sapin and contributors, see AUTHORS.
:license: BSD, see LICENSE for details.
2012-01-30 20:54:51 +04:00
"""
from __future__ import division, unicode_literals
2012-01-30 20:54:51 +04:00
import logging
LOGGER = logging.getLogger('weasyprint')
2012-01-30 20:54:51 +04:00
# Default to logging to stderr.
LOGGER.addHandler(logging.StreamHandler())
2012-02-21 17:13:34 +04:00
LOGGER.setLevel(logging.INFO)