#!/usr/bin/env python # -*- coding: utf-8 -*- from myLog import MyLog if __name__ == '__main__': ml = MyLog() ml.debug("I am the debug message") ml.info("I am the info message") ml.warn("I am the warn message") ml.error("I am the error message") ml.critical("I am the critical message")
from myLog import MyLog if __name__ == '__main__': ml = MyLog() ml.debug("1'm a debug message") ml.info("I'm an info message") ml.warn("I'm a warn message") ml.error("I'm an error message") ml.critical("I'm a critical message")
#!/usr/bin/env python #-*- coding: utf-8 -*- __author__ = 'hstking [email protected]' from myLog import MyLog if __name__ == '__main__': ml = MyLog() ml.debug('I am debug message') ml.info('I am info message') ml.warn('I am warn message') ml.error('I am error message') ml.critical('I am critical message')
#!/usr/bin/env python #-*- coding:utf-8 -*- from myLog import MyLog if __name__ == "__main__": ml = MyLog() ml.debug('debug') ml.info('info') ml.warn('warn') ml.error('error') ml.critical('critical')