Package akka.event.slf4j
Class Slf4jLoggingFilter
- java.lang.Object
-
- akka.event.slf4j.Slf4jLoggingFilter
-
- All Implemented Interfaces:
LoggingFilter
,LoggingFilterWithMarker
public class Slf4jLoggingFilter extends java.lang.Object implements LoggingFilterWithMarker
LoggingFilter
that uses the log level defined in the SLF4J backend configuration (e.g. logback.xml) to filter log events before publishing the log events to theeventStream
.
-
-
Constructor Summary
Constructors Constructor Description Slf4jLoggingFilter(ActorSystem.Settings settings, EventStream eventStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDebugEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
boolean
isDebugEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
boolean
isErrorEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
boolean
isErrorEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
boolean
isInfoEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
boolean
isInfoEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
boolean
isWarningEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
boolean
isWarningEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
-
-
-
Constructor Detail
-
Slf4jLoggingFilter
public Slf4jLoggingFilter(ActorSystem.Settings settings, EventStream eventStream)
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
- Specified by:
isDebugEnabled
in interfaceLoggingFilter
-
isDebugEnabled
public boolean isDebugEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
- Specified by:
isDebugEnabled
in interfaceLoggingFilterWithMarker
-
isErrorEnabled
public boolean isErrorEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
- Specified by:
isErrorEnabled
in interfaceLoggingFilter
-
isErrorEnabled
public boolean isErrorEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
- Specified by:
isErrorEnabled
in interfaceLoggingFilterWithMarker
-
isInfoEnabled
public boolean isInfoEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
- Specified by:
isInfoEnabled
in interfaceLoggingFilter
-
isInfoEnabled
public boolean isInfoEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
- Specified by:
isInfoEnabled
in interfaceLoggingFilterWithMarker
-
isWarningEnabled
public boolean isWarningEnabled(java.lang.Class<?> logClass, java.lang.String logSource)
- Specified by:
isWarningEnabled
in interfaceLoggingFilter
-
isWarningEnabled
public boolean isWarningEnabled(java.lang.Class<?> logClass, java.lang.String logSource, LogMarker marker)
- Specified by:
isWarningEnabled
in interfaceLoggingFilterWithMarker
-
-