We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8104a5c commit 54b532aCopy full SHA for 54b532a
llms_wrapper/utils_loguru.py
@@ -0,0 +1,12 @@
1
+"""Module to simplify inspection of current loguru settings"""
2
+
3
+from loguru import logger
4
5
+def handlers() -> dict:
6
+ return logger._core.handlers
7
8
+def is_enabled(module: str) -> bool:
9
+ al = logger._core.activation_list
10
+ module = module + "."
11
+ return next((x for x in al if x[0] == module), None)
12
0 commit comments