Spaces:
Running
Running
zzstoatzz commited on
Commit ·
13bdbd3
1
Parent(s): c1dbfd7
more
Browse files
src/fastmcp/utilities/logging.py
CHANGED
|
@@ -7,15 +7,15 @@ from rich.logging import RichHandler
|
|
| 7 |
|
| 8 |
|
| 9 |
def get_logger(name: str) -> logging.Logger:
|
| 10 |
-
"""Get a logger nested under
|
| 11 |
|
| 12 |
Args:
|
| 13 |
-
name: the name of the logger, which will be prefixed with '
|
| 14 |
|
| 15 |
Returns:
|
| 16 |
a configured logger instance
|
| 17 |
"""
|
| 18 |
-
return logging.getLogger(f"
|
| 19 |
|
| 20 |
|
| 21 |
def configure_logging(
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
def get_logger(name: str) -> logging.Logger:
|
| 10 |
+
"""Get a logger nested under FastMCP namespace.
|
| 11 |
|
| 12 |
Args:
|
| 13 |
+
name: the name of the logger, which will be prefixed with 'FastMCP.'
|
| 14 |
|
| 15 |
Returns:
|
| 16 |
a configured logger instance
|
| 17 |
"""
|
| 18 |
+
return logging.getLogger(f"FastMCP.{name}")
|
| 19 |
|
| 20 |
|
| 21 |
def configure_logging(
|