aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/l/logging_not_lazy_with_logger.py
blob: 69d0e9bd419578526f9f03f7b4d6698fb9174476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Logging warnings using a logger class."""
# pylint: disable=consider-using-f-string
from __future__ import absolute_import
import logging

__revision__ = ''

LOG = logging.getLogger("domain")
LOG.debug("%s" % "junk")  # [logging-not-lazy]
LOG.log(logging.DEBUG, "%s" % "junk")  # [logging-not-lazy]
LOG2 = LOG.debug
LOG2("%s" % "junk")  # [logging-not-lazy]

logging.getLogger("domain").debug("%s" % "junk")  # [logging-not-lazy]