We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6a82c5 commit 6fbaa77Copy full SHA for 6fbaa77
1 file changed
agentops/logging/instrument_logging.py
@@ -9,6 +9,7 @@
9
# Global buffer to store logs
10
_log_buffer = StringIO()
11
12
+print_logger = None
13
14
def setup_print_logger() -> None:
15
"""
@@ -28,7 +29,8 @@ def setup_print_logger() -> None:
28
29
30
# Ensure the new logger doesn't propagate to root
31
buffer_logger.propagate = False
-
32
+
33
+ global print_logger
34
def print_logger(*args: Any, **kwargs: Any) -> None:
35
36
Custom print function that logs to buffer and console.
0 commit comments