def checkDirectColorLog(): a = TerminalColorOut() # Test of logging methods ################## for i in [False, True]: a._useFormat = i # Switch here a.notice('It\'s just test NOTICE') a.debug('It\'s just my console-color test') a.info('Don\'t wonder.') a.warning('Can you see this?') a.error('How are you?') a.critical('Hello %username%') print '------ END of DirectColorLog check %s ------\n' % ('with format' if i else 'without format')