-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace eventId exclude list with filter function callback option.
- Loading branch information
1 parent
724f4fb
commit bcc9f07
Showing
4 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.configcat; | ||
|
||
public class FilterFunctionParameters { | ||
|
||
private final int eventId; | ||
|
||
private final String message; | ||
|
||
private final LogLevel logLevel; | ||
|
||
private final Exception exception; | ||
|
||
public FilterFunctionParameters(int eventId, String message, LogLevel logLevel, Exception exception) { | ||
this.eventId = eventId; | ||
this.message = message; | ||
this.logLevel = logLevel; | ||
this.exception = exception; | ||
} | ||
|
||
public FilterFunctionParameters(int eventId, String message, LogLevel logLevel) { | ||
this(eventId, message, logLevel, null); | ||
} | ||
|
||
public int getEventId() { | ||
return eventId; | ||
} | ||
|
||
public Exception getException() { | ||
return exception; | ||
} | ||
|
||
public LogLevel getLogLevel() { | ||
return logLevel; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters