Class DifyLoggingControl
java.lang.Object
io.github.guoshiqiufeng.dify.client.spring6.logging.DifyLoggingControl
Control the global state of Dify loggers to prevent duplicate interceptors from being added
- Since:
- 2025/4/29 15:00
- Version:
- 0.11.0
- Author:
- yanghq
-
Method Summary
Modifier and TypeMethodDescriptionGets the log filter instance and marks it as addedgetAndMarkInterceptorstatic DifyLoggingControlgetInstancevoidreset()Reset state, mainly used for testing
-
Method Details
-
getInstance
getInstance- Returns:
- DifyLoggingControl实例
-
getAndMarkInterceptor
getAndMarkInterceptor- Returns:
- DifyRestLoggingInterceptor instance, or null if it has already been added.
-
getAndMarkFilter
Gets the log filter instance and marks it as added- Returns:
- DifyLoggingFilter instance, or null if it has already been added.
-
reset
public void reset()Reset state, mainly used for testing
-