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


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]