Debian Codegraph @

debian/tests/example1

raw
1 #!/usr/bin/env python3
2
3 from logzero import logger
4
5 # These log messages are sent to the console
6 logger.debug("hello")
7 logger.info("info")
8 logger.warning("warning")
9 logger.error("error")
10
11 # This is how you'd log an exception
12 try:
13 raise Exception("this is a demo exception")
14 except Exception as e:
15 logger.exception(e)
16