Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import logging
- DEBUG_LEVELV_NUM = 31
- logging.addLevelName(DEBUG_LEVELV_NUM, "[DEBUGV]")
- logging.basicConfig(level=logging.INFO)
- logger = logging.getLogger(__name__)
- logger.setLevel(logging.INFO)
- def main():
- logger.log(DEBUG_LEVELV_NUM, '---123---')
- logger.info('123')
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement