You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/sdk-reference/java.mdx
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ These are the available options on the `Options` class:
123
123
|`defaultUser(User)`| Optional, sets default user. [More about default user](#default-user). |
124
124
|`offline(boolean)`| Optional, defaults to `false`. Indicates whether the SDK should be initialized in offline mode. [More about offline mode](#online--offline-mode). |
125
125
|`hooks()`| Optional, used to subscribe events that the SDK sends in specific scenarios. [More about hooks](#hooks). |
126
-
|`logFilter(LogFilterFunction)`| Optional, used to set custom log filter implementation. [More about log filter](#log-filter).|
126
+
|`logFilter(LogFilterFunction)`| Optional, sets a custom log filter. [More about log filtering](#log-filtering). |
127
127
128
128
:::caution
129
129
We strongly recommend you to use the `ConfigCatClient` as a Singleton object in your application.
@@ -872,18 +872,18 @@ You have the flexibility to use any slf4j implementation for logging with Config
872
872
873
873
Examples fo <a href="https://github.com/configcat/java-sdk/blob/master/samples/console/src/main/resources/simplelogger.properties" target="_blank">slf4j-simple</a> and <a href="https://github.com/configcat/java-sdk/blob/master/samples/web/src/main/resources/logback.xml" target="_blank">logback</a> are available under the [Sample Apps](#sample-apps) section.
874
874
875
-
### Log Filter
875
+
### Log Filtering
876
876
877
-
You can set a custom log filter option by implementing the `LogFilterFunction` interface. The `apply` method provide the options to filter by `logLevel`, `eventId`, `message` or `exception`.
878
-
If the `apply` method return with `true`, the event will be logged.
877
+
You can define a custom log filter option by implementing the `LogFilterFunction` interface. The `apply` method will be called by the _ConfigCat SDK_ each time a log event occurs (and the event passes the minimum log level specified by the `logLevel` option). That is, the `apply` method allows you to filter log events by `logLevel`, `eventId`, `message` or `exception`.
878
+
If the `apply` method returns with `true`, the event will be logged, otherwise it will be skipped.
> A complex or a badly implemented log filter can affect the SDK efficiency.
886
+
>Please make sure that your log filter logic doesn't perform heavy computation and dosen't block the executing thread. A complex or incorrectly implemented log filter can negatively affect the performance of the SDK.
0 commit comments