Spaces:
Sleeping
Sleeping
Create logger.py
Browse files- core/logger.py +9 -0
core/logger.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# core/utils/logger.py
|
2 |
+
import logging
|
3 |
+
|
4 |
+
logging.basicConfig(
|
5 |
+
level=logging.INFO,
|
6 |
+
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s"
|
7 |
+
)
|
8 |
+
|
9 |
+
logger = logging.getLogger("first_aid_app")
|