Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_logging_not_lazy_with_logger.py 303B

12345678910111213
  1. """Logging warnings using a logger class."""
  2. from __future__ import absolute_import
  3. import logging
  4. __revision__ = ''
  5. LOG = logging.getLogger("domain")
  6. LOG.debug("%s" % "junk")
  7. LOG.log(logging.DEBUG, "%s" % "junk")
  8. LOG2 = LOG.debug
  9. LOG2("%s" % "junk")
  10. logging.getLogger("domain").debug("%s" % "junk")