File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
slf4j-api/src/main/java/org/slf4j Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,9 @@ private static void replaySingleEvent(SubstituteLoggingEvent event) {
304
304
if (substLogger .isDelegateNOP ()) {
305
305
// nothing to do
306
306
} else if (substLogger .isDelegateEventAware ()) {
307
- substLogger .log (event );
307
+ if (substLogger .isEnabledForLevel (event .getLevel ())) {
308
+ substLogger .log (event );
309
+ }
308
310
} else {
309
311
Util .report (loggerName );
310
312
}
Original file line number Diff line number Diff line change 4
4
5
5
/**
6
6
* A logger capable of logging from org.slf4j.event.LoggingEvent implements this interface.
7
- *
7
+ *
8
+ * <p>Please note that when the {@link #log(LoggingEvent)} method assumes that
9
+ * the event was filtered beforehand and no further filtering needs to occur by the method itself.
10
+ * <p>
11
+ *
12
+ * <p>Implementations of this interface <b>may</b> apply further filtering but they are not
13
+ * required to do so. In other words, {@link #log(LoggingEvent)} method is free to assume that
14
+ * the event was filtered beforehand and no further filtering needs to occur in the method itself.</p>
15
+ *
16
+ * See also https://jira.qos.ch/browse/SLF4J-575
17
+ *
8
18
* @author Ceki Gulcu
9
19
* @since 2.0.0
10
20
*/
You can’t perform that action at this time.
0 commit comments