2012-01-30 20:54:51 +04:00
|
|
|
# coding: utf8
|
2012-03-22 02:19:27 +04:00
|
|
|
"""
|
|
|
|
weasyprint.logging
|
|
|
|
------------------
|
2012-01-30 20:54:51 +04:00
|
|
|
|
2012-03-22 02:19:27 +04:00
|
|
|
Logging setup.
|
2012-01-30 20:54:51 +04:00
|
|
|
|
2012-03-22 02:19:27 +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
|
|
|
|
|
|
|
"""
|
|
|
|
|
2012-02-22 20:12:40 +04:00
|
|
|
from __future__ import division, unicode_literals
|
2012-01-30 20:54:51 +04:00
|
|
|
|
|
|
|
import logging
|
|
|
|
|
|
|
|
|
2012-02-22 20:12:40 +04:00
|
|
|
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)
|