This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| def dump_logging_tree(): | |
| root = logging.getLogger() | |
| loggers = logging.root.manager.loggerDict | |
| print('Logging hierarchy:') | |
| def walk(logger, indent=0): | |
| handlers = [type(h).__name__ for h in logger.handlers] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| import time | |
| from crontab import CronTab | |
| def main(): |