Guest User

Untitled

a guest
Mar 20th, 2016
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import logging
  2.  
  3. l = logging.getLogger('MOJLOGGER')
  4. l.addHandler(logging.StreamHandler())
  5. l.setLevel(10)
  6. l.info('ABC')
  7. #ABC
  8.  
  9. import pybrain.tools.shortcuts
  10. l.info('ABC')
  11. #ABC
  12. #INFO:MOJLOGGER:ABC
  13.  
  14. ll = logging.getLogger("MOJLICHNIYLOGGERBLYAD")
  15. ll.setLevel(10)
  16. ll.info('ABC')
  17. #INFO:MOJLICHNIYLOGGERBLYAD:ABC
  18.  
  19. ll.addHandler(logging.StreamHandler())
  20. ll.info('ABC')
  21. #ABC
  22. #INFO:MOJLICHNIYLOGGERBLYAD:ABC
Advertisement
Add Comment
Please, Sign In to add comment