1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/usr/bin/python """Test newplugins module""" import logging import sys logging.basicConfig(level = logging.DEBUG, format = "%(levelname)s: %(message)s", stream = sys.stderr) if True: logging.debug("xxx debug") logging.info("xxx info") logging.warning("xxx warn") logging.error("xxx error") import newplugins newplugins.selftest()