public final class Log<T> extends GraphStages.SimpleLinearGraphStage<T> implements scala.Product, scala.Serializable
| Constructor and Description |
|---|
Log(java.lang.String name,
scala.Function1<T,java.lang.Object> extract,
scala.Option<LoggingAdapter> logAdapter) |
| Modifier and Type | Method and Description |
|---|---|
static Graph<S,M> |
addAttributes(Attributes attr) |
static Graph<S,M> |
async() |
abstract static boolean |
canEqual(java.lang.Object that) |
GraphStageLogic |
createLogic(Attributes inheritedAttributes) |
static scala.Tuple2<GraphStageLogic,NotUsed> |
createLogicAndMaterializedValue(Attributes inheritedAttributes) |
abstract static boolean |
equals(java.lang.Object that) |
scala.Function1<T,java.lang.Object> |
extract() |
static java.lang.Object |
fromMaterializer()
Must be located here to be visible for implicit resolution, when
Materializer is passed to Logging
More specific LogSource than fromString, which would add the ActorSystem name in addition to the supervision to the log source. |
static Inlet<T> |
in() |
protected static Attributes |
initialAttributes() |
scala.Option<LoggingAdapter> |
logAdapter() |
static StreamLayout.Module |
module() |
java.lang.String |
name() |
static Graph<S,M> |
named(java.lang.String name) |
static Outlet<T> |
out() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
static FlowShape<T,T> |
shape() |
java.lang.String |
toString() |
static Graph<S,M> |
withAttributes(Attributes attr) |
in, out, shapecreateLogicAndMaterializedValueinitialAttributes, module, withAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait$init$, productArity, productElement, productIterator, productPrefixaddAttributes, async, namedpublic Log(java.lang.String name,
scala.Function1<T,java.lang.Object> extract,
scala.Option<LoggingAdapter> logAdapter)
public static final java.lang.Object fromMaterializer()
Materializer is passed to Logging
More specific LogSource than fromString, which would add the ActorSystem name in addition to the supervision to the log source.public static Graph<S,M> named(java.lang.String name)
public static Graph<S,M> async()
public static Graph<S,M> addAttributes(Attributes attr)
protected static Attributes initialAttributes()
public static final StreamLayout.Module module()
public static final Graph<S,M> withAttributes(Attributes attr)
public static final scala.Tuple2<GraphStageLogic,NotUsed> createLogicAndMaterializedValue(Attributes inheritedAttributes)
public static Inlet<T> in()
public static Outlet<T> out()
public static FlowShape<T,T> shape()
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public java.lang.String name()
public scala.Function1<T,java.lang.Object> extract()
public scala.Option<LoggingAdapter> logAdapter()
public java.lang.String toString()
toString in class java.lang.Objectpublic GraphStageLogic createLogic(Attributes inheritedAttributes)
createLogic in class GraphStage<FlowShape<T,T>>