Package akka.stream.stage
Interface StageLogging
-
- All Known Implementing Classes:
GraphStageLogicWithLogging
,RestartWithBackoffLogic
,TimerGraphStageLogicWithLogging
public interface StageLogging
Simple way to obtain aLoggingAdapter
when used together with anMaterializer
. If used with a different materializerNoLogging
will be returned.Make sure to only access
log
from GraphStage callbacks (such aspull
,push
or the async-callback).Note, abiding to
akka.stream.ActorAttributes.logLevels
has to be done manually, the logger itself is configured based on the logSource provided to it. Also, thelog
itself would not know if you're calling it from a "on element" context or not, which is why these decisions have to be handled by the operator itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
_log_$eq(LoggingAdapter x$1)
LoggingAdapter
log()
java.lang.Class<?>
logSource()
Override to customise reported log source
-
-
-
Method Detail
-
_log_$eq
void _log_$eq(LoggingAdapter x$1)
-
log
LoggingAdapter log()
-
logSource
java.lang.Class<?> logSource()
Override to customise reported log source
-
-