import logging logger = logging.getLogger('debianbts') logging.basicConfig( format='%(asctime)s %(levelname)s %(name)s %(message)s', level=logging.WARNING ) def main(): logger.warning('Not implemented yet, sorry!') if __name__ == '__main__': main()