Package akka.event
Class MarkerLoggingAdapter
- java.lang.Object
-
- akka.event.BusLogging
-
- akka.event.MarkerLoggingAdapter
-
- All Implemented Interfaces:
LoggingAdapter
- Direct Known Subclasses:
DiagnosticMarkerBusLoggingAdapter
,NoMarkerLogging$
public class MarkerLoggingAdapter extends BusLogging
LoggingAdapter
extension which adds Marker support.
-
-
Constructor Summary
Constructors Constructor Description MarkerLoggingAdapter(LoggingBus bus, java.lang.String logSource, java.lang.Class<?> logClass)
MarkerLoggingAdapter(LoggingBus bus, java.lang.String logSource, java.lang.Class<?> logClass, LoggingFilter loggingFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingBus
bus()
void
debug(LogMarker marker, java.lang.String message)
Log message at debug level.void
debug(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument.void
debug(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments.void
debug(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments.void
debug(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments.void
error(LogMarker marker, java.lang.String message)
Log message at error level, without providing the exception that caused the error.void
error(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument.void
error(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments.void
error(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments.void
error(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments.void
error(LogMarker marker, java.lang.Throwable cause, java.lang.String message)
Log message at error level, including the exception that caused the error.void
error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument.void
error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments.void
error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments.void
error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments.void
info(LogMarker marker, java.lang.String message)
Log message at info level.void
info(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument.void
info(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments.void
info(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments.void
info(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments.boolean
isDebugEnabled(LogMarker marker)
boolean
isErrorEnabled(LogMarker marker)
boolean
isInfoEnabled(LogMarker marker)
boolean
isWarningEnabled(LogMarker marker)
void
log(LogMarker marker, Logging.LogLevel level, java.lang.String message)
Log message at the specified log level.java.lang.Class<?>
logClass()
LoggingFilterWithMarker
loggingFilterWithMarker()
java.lang.String
logSource()
void
warning(LogMarker marker, java.lang.String message)
Log message at warning level.void
warning(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument.void
warning(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments.void
warning(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments.void
warning(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments.-
Methods inherited from class akka.event.BusLogging
isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarningEnabled, notifyDebug, notifyError, notifyError, notifyInfo, notifyWarning, notifyWarning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.event.LoggingAdapter
debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, format, format1, formatImpl, info, info, info, info, info, isEnabled, log, log, log, log, log, mdc, notifyLog, warning, warning, warning, warning, warning, warning, warning, warning, warning, warning
-
-
-
-
Constructor Detail
-
MarkerLoggingAdapter
public MarkerLoggingAdapter(LoggingBus bus, java.lang.String logSource, java.lang.Class<?> logClass, LoggingFilter loggingFilter)
-
MarkerLoggingAdapter
public MarkerLoggingAdapter(LoggingBus bus, java.lang.String logSource, java.lang.Class<?> logClass)
-
-
Method Detail
-
bus
public LoggingBus bus()
- Overrides:
bus
in classBusLogging
-
debug
public void debug(LogMarker marker, java.lang.String message)
Log message at debug level. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
debug
public void debug(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See Also:
LoggingAdapter
-
debug
public void debug(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
debug
public void debug(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
debug
public void debug(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.Throwable cause, java.lang.String message)
Log message at error level, including the exception that caused the error. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.Throwable cause, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.String message)
Log message at error level, without providing the exception that caused the error. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
error
public void error(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
info
public void info(LogMarker marker, java.lang.String message)
Log message at info level. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
info
public void info(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See Also:
LoggingAdapter
-
info
public void info(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
info
public void info(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
info
public void info(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
isDebugEnabled
public boolean isDebugEnabled(LogMarker marker)
-
isErrorEnabled
public boolean isErrorEnabled(LogMarker marker)
-
isInfoEnabled
public boolean isInfoEnabled(LogMarker marker)
-
isWarningEnabled
public boolean isWarningEnabled(LogMarker marker)
-
log
public void log(LogMarker marker, Logging.LogLevel level, java.lang.String message)
Log message at the specified log level.
-
logClass
public java.lang.Class<?> logClass()
- Overrides:
logClass
in classBusLogging
-
logSource
public java.lang.String logSource()
- Overrides:
logSource
in classBusLogging
-
loggingFilterWithMarker
public LoggingFilterWithMarker loggingFilterWithMarker()
-
warning
public void warning(LogMarker marker, java.lang.String message)
Log message at warning level. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
warning
public void warning(LogMarker marker, java.lang.String template, java.lang.Object arg1)
Message template with 1 replacement argument. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".If
arg1
is anArray
it will be expanded into replacement arguments, which is useful when there are more than four arguments.- See Also:
LoggingAdapter
-
warning
public void warning(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2)
Message template with 2 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
warning
public void warning(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Message template with 3 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
warning
public void warning(LogMarker marker, java.lang.String template, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Message template with 4 replacement arguments. The marker argument can be picked up by various logging frameworks such as slf4j to mark this log statement as "special".- See Also:
LoggingAdapter
-
-