Package org.apache.pekko.stream.stage
Interface StageLogging
-
- All Known Implementing Classes:
GraphStageLogicWithLogging,RestartWithBackoffLogic,TimerGraphStageLogicWithLogging
public interface StageLoggingSimple way to obtain apekko.event.LoggingAdapterwhen used together with anpekko.stream.Materializer. If used with a different materializerpekko.event.NoLoggingwill be returned.Make sure to only access
logfrom GraphStage callbacks (such aspull,pushor the async-callback).Note, abiding to
pekko.stream.ActorAttributes.logLevelshas to be done manually, the logger itself is configured based on the logSource provided to it. Also, thelogitself 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)LoggingAdapterlog()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
-
-