Class CapturedLogEvent

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product, scala.Serializable

    public final class CapturedLogEvent
    extends java.lang.Object
    implements scala.Product, scala.Serializable
    Representation of a Log Event issued by a Behavior
    See Also:
    Serialized Form
    • Constructor Detail

      • CapturedLogEvent

        public CapturedLogEvent​(Logging.LogLevel logLevel,
                                java.lang.String message,
                                scala.Option<java.lang.Throwable> cause,
                                scala.Option<LogMarker> marker,
                                scala.collection.immutable.Map<java.lang.String,​java.lang.Object> mdc)
      • CapturedLogEvent

        public CapturedLogEvent​(Logging.LogLevel logLevel,
                                java.lang.String message,
                                java.util.Optional<java.lang.Throwable> errorCause,
                                java.util.Optional<LogMarker> marker,
                                java.util.Map<java.lang.String,​java.lang.Object> mdc)
        Constructor for Java API
        Parameters:
        logLevel - (undocumented)
        message - (undocumented)
        errorCause - (undocumented)
        marker - (undocumented)
        mdc - (undocumented)
      • CapturedLogEvent

        public CapturedLogEvent​(Logging.LogLevel logLevel,
                                java.lang.String message)
        Constructor for Java API
        Parameters:
        logLevel - (undocumented)
        message - (undocumented)
      • CapturedLogEvent

        public CapturedLogEvent​(Logging.LogLevel logLevel,
                                java.lang.String message,
                                java.lang.Throwable errorCause)
        Constructor for Java API
        Parameters:
        logLevel - (undocumented)
        message - (undocumented)
        errorCause - (undocumented)
      • CapturedLogEvent

        public CapturedLogEvent​(Logging.LogLevel logLevel,
                                java.lang.String message,
                                LogMarker marker)
        Constructor for Java API
        Parameters:
        logLevel - (undocumented)
        message - (undocumented)
        marker - (undocumented)
      • CapturedLogEvent

        public CapturedLogEvent​(Logging.LogLevel logLevel,
                                java.lang.String message,
                                java.lang.Throwable errorCause,
                                LogMarker marker)
        Constructor for Java API
        Parameters:
        logLevel - (undocumented)
        message - (undocumented)
        errorCause - (undocumented)
        marker - (undocumented)
    • Method Detail

      • apply

        public static CapturedLogEvent apply​(Logging.LogLevel logLevel,
                                             java.lang.String message,
                                             OptionVal<java.lang.Throwable> errorCause,
                                             OptionVal<LogMarker> logMarker,
                                             scala.collection.immutable.Map<java.lang.String,​java.lang.Object> mdc)
        Auxiliary constructor that receives Akka's internal OptionVal as parameters and converts them to Scala's Option. INTERNAL API
        Parameters:
        logLevel - (undocumented)
        message - (undocumented)
        errorCause - (undocumented)
        logMarker - (undocumented)
        mdc - (undocumented)
        Returns:
        (undocumented)
      • apply

        public static CapturedLogEvent apply​(Logging.LogLevel logLevel,
                                             java.lang.String message,
                                             scala.Option<java.lang.Throwable> cause,
                                             scala.Option<LogMarker> marker,
                                             scala.collection.immutable.Map<java.lang.String,​java.lang.Object> mdc)
      • unapply

        public static scala.Option<scala.Tuple5<Logging.LogLevel,​java.lang.String,​scala.Option<java.lang.Throwable>,​scala.Option<LogMarker>,​scala.collection.immutable.Map<java.lang.String,​java.lang.Object>>> unapply​(CapturedLogEvent x$0)
      • message

        public java.lang.String message()
      • cause

        public scala.Option<java.lang.Throwable> cause()
      • marker

        public scala.Option<LogMarker> marker()
      • mdc

        public scala.collection.immutable.Map<java.lang.String,​java.lang.Object> mdc()
      • getMdc

        public java.util.Map<java.lang.String,​java.lang.Object> getMdc()
      • getErrorCause

        public java.util.Optional<java.lang.Throwable> getErrorCause()
      • getLogMarker

        public java.util.Optional<LogMarker> getLogMarker()
      • copy

        public CapturedLogEvent copy​(Logging.LogLevel logLevel,
                                     java.lang.String message,
                                     scala.Option<java.lang.Throwable> cause,
                                     scala.Option<LogMarker> marker,
                                     scala.collection.immutable.Map<java.lang.String,​java.lang.Object> mdc)
      • copy$default$2

        public java.lang.String copy$default$2()
      • copy$default$3

        public scala.Option<java.lang.Throwable> copy$default$3()
      • copy$default$4

        public scala.Option<LogMarker> copy$default$4()
      • copy$default$5

        public scala.collection.immutable.Map<java.lang.String,​java.lang.Object> copy$default$5()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object