Spaces:
Sleeping
Sleeping
Create src/chimera/utils/logging_config.py
Browse files
src/chimera/utils/logging_config.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# src/chimera/utils/logging_config.py
|
2 |
+
import logging
|
3 |
+
import sys
|
4 |
+
|
5 |
+
def setup_logging():
|
6 |
+
logging.basicConfig(
|
7 |
+
level=logging.INFO,
|
8 |
+
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
9 |
+
stream=sys.stdout, # Log to standard output, which HF Spaces captures
|
10 |
+
)
|
11 |
+
# You might want to set different levels for specific libraries
|
12 |
+
logging.getLogger("httpx").setLevel(logging.WARNING)
|
13 |
+
|
14 |
+
logger = logging.getLogger("ProjectChimera")
|