import logging
import loggingpackage.customlogger as cl

class LoggingDemo2():

    log = cl.customLogger(logLevel=logging.DEBUG)

    def method1(self):
        self.log.debug("debug message")
        self.log.info("info message")
        self.log.warning("warning message")
        self.log.error("error message")
        self.log.critical("critical message")

    def method2(self):
        m2Log = cl.customLogger(logging.INFO)
        m2Log.debug("debug message")
        m2Log.info("info message")
        m2Log.warning("warning message")
        m2Log.error("error message")
        m2Log.critical("critical message")


    def method3(self):
        m3Log = cl.customLogger(logging.ERROR)
        m3Log.debug("debug message")
        m3Log.info("info message")
        m3Log.warning("warning message")
        m3Log.error("error message")
        m3Log.critical("critical message")


fn = LoggingDemo2()
fn.method1()
fn.method2()
fn.method3()