Log elements flowing through the stream as well as completion and erroring.
def log(name: String, extract: Out => Any = ConstantFun.scalaIdentityFunction)(implicit log: LoggingAdapter = null): Repr[Out]
Log elements flowing through the stream as well as completion and erroring. By default element and completion signals are logged on debug level, and errors are logged on Error level. This can be changed by calling
Attributes.createLogLevels(...) on the given Flow.
.log(name = "myStream")
onElement = Attributes.LogLevels.Off,
onFinish = Attributes.LogLevels.Info,
onFailure = Attributes.LogLevels.Error))
Attributes.logLevelOff(), // onElement
Attributes.logLevelInfo(), // onFinish
Attributes.logLevelError())) // onFailure
Reactive Streams semantics
emits when upstream emits
backpressures when downstream backpressures
completes when upstream completes
Found an error in this documentation? The source code for this page can be found here
Please feel free to edit and contribute a pull request.