forked from x4nth055/pythoncode-tutorials
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogger_basic.py
More file actions
Latest commit
22 lines (16 loc) · 498 Bytes
/
Copy pathlogger_basic.py
File metadata and controls
22 lines (16 loc) · 498 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
importlogging
# make a basic logging configuration
# here we set the level of logging to DEBUG
logging.basicConfig(
level=logging.DEBUG
)
# make a debug message
logging.debug("This is a simple debug log")
# make an info message
logging.info("This is a simple info log")
# make a warning message
logging.warning("This is a simple warning log")
# make an error message
logging.error("This is a simple error log")
# make a critical message
logging.critical("This is a simple critical log")