Class CapturedLogEvent

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

    public final class CapturedLogEvent
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    Representation of a Log Event issued by a Behavior when testing with BehaviorTestKit or BehaviorTestKit.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CapturedLogEvent​(org.slf4j.event.Level level, java.lang.String message)
      Constructor for Java API
      CapturedLogEvent​(org.slf4j.event.Level level, java.lang.String message, java.lang.Throwable errorCause)
      Constructor for Java API
      CapturedLogEvent​(org.slf4j.event.Level level, java.lang.String message, java.lang.Throwable errorCause, org.slf4j.Marker marker)
      Constructor for Java API
      CapturedLogEvent​(org.slf4j.event.Level level, java.lang.String message, java.util.Optional<java.lang.Throwable> errorCause, java.util.Optional<org.slf4j.Marker> marker, java.util.Map<java.lang.String,​java.lang.Object> mdc)
      Constructor for Java API
      CapturedLogEvent​(org.slf4j.event.Level level, java.lang.String message, org.slf4j.Marker marker)
      Constructor for Java API
      CapturedLogEvent​(org.slf4j.event.Level level, java.lang.String message, scala.Option<java.lang.Throwable> cause, scala.Option<org.slf4j.Marker> marker)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CapturedLogEvent apply​(org.slf4j.event.Level level, java.lang.String message)  
      static CapturedLogEvent apply​(org.slf4j.event.Level level, java.lang.String message, OptionVal<java.lang.Throwable> errorCause, OptionVal<org.slf4j.Marker> logMarker)
      Auxiliary constructor that receives Akka's internal OptionVal as parameters and converts them to Scala's Option.
      static CapturedLogEvent apply​(org.slf4j.event.Level level, java.lang.String message, scala.Option<java.lang.Throwable> cause, scala.Option<org.slf4j.Marker> marker)  
      boolean canEqual​(java.lang.Object x$1)  
      scala.Option<java.lang.Throwable> cause()  
      CapturedLogEvent copy​(org.slf4j.event.Level level, java.lang.String message, scala.Option<java.lang.Throwable> cause, scala.Option<org.slf4j.Marker> marker)  
      org.slf4j.event.Level copy$default$1()  
      java.lang.String copy$default$2()  
      scala.Option<java.lang.Throwable> copy$default$3()  
      scala.Option<org.slf4j.Marker> copy$default$4()  
      boolean equals​(java.lang.Object x$1)  
      java.util.Optional<java.lang.Throwable> getErrorCause()  
      java.util.Optional<org.slf4j.Marker> getMarker()  
      int hashCode()  
      org.slf4j.event.Level level()  
      scala.Option<org.slf4j.Marker> marker()  
      java.lang.String message()  
      int productArity()  
      java.lang.Object productElement​(int x$1)  
      java.lang.String productElementName​(int x$1)  
      scala.collection.Iterator<java.lang.Object> productIterator()  
      java.lang.String productPrefix()  
      java.lang.String toString()  
      static scala.Option<scala.Tuple4<org.slf4j.event.Level,​java.lang.String,​scala.Option<java.lang.Throwable>,​scala.Option<org.slf4j.Marker>>> unapply​(CapturedLogEvent x$0)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Product

        productElementNames
    • Constructor Detail

      • CapturedLogEvent

        public CapturedLogEvent​(org.slf4j.event.Level level,
                                java.lang.String message,
                                scala.Option<java.lang.Throwable> cause,
                                scala.Option<org.slf4j.Marker> marker)
      • CapturedLogEvent

        public CapturedLogEvent​(org.slf4j.event.Level level,
                                java.lang.String message,
                                java.util.Optional<java.lang.Throwable> errorCause,
                                java.util.Optional<org.slf4j.Marker> marker,
                                java.util.Map<java.lang.String,​java.lang.Object> mdc)
        Constructor for Java API
      • CapturedLogEvent

        public CapturedLogEvent​(org.slf4j.event.Level level,
                                java.lang.String message)
        Constructor for Java API
      • CapturedLogEvent

        public CapturedLogEvent​(org.slf4j.event.Level level,
                                java.lang.String message,
                                java.lang.Throwable errorCause)
        Constructor for Java API
      • CapturedLogEvent

        public CapturedLogEvent​(org.slf4j.event.Level level,
                                java.lang.String message,
                                org.slf4j.Marker marker)
        Constructor for Java API
      • CapturedLogEvent

        public CapturedLogEvent​(org.slf4j.event.Level level,
                                java.lang.String message,
                                java.lang.Throwable errorCause,
                                org.slf4j.Marker marker)
        Constructor for Java API
    • Method Detail

      • apply

        public static CapturedLogEvent apply​(org.slf4j.event.Level level,
                                             java.lang.String message)
      • apply

        public static CapturedLogEvent apply​(org.slf4j.event.Level level,
                                             java.lang.String message,
                                             OptionVal<java.lang.Throwable> errorCause,
                                             OptionVal<org.slf4j.Marker> logMarker)
        Auxiliary constructor that receives Akka's internal OptionVal as parameters and converts them to Scala's Option. INTERNAL API
      • apply

        public static CapturedLogEvent apply​(org.slf4j.event.Level level,
                                             java.lang.String message,
                                             scala.Option<java.lang.Throwable> cause,
                                             scala.Option<org.slf4j.Marker> marker)
      • unapply

        public static scala.Option<scala.Tuple4<org.slf4j.event.Level,​java.lang.String,​scala.Option<java.lang.Throwable>,​scala.Option<org.slf4j.Marker>>> unapply​(CapturedLogEvent x$0)
      • level

        public org.slf4j.event.Level level()
      • message

        public java.lang.String message()
      • cause

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

        public scala.Option<org.slf4j.Marker> marker()
      • getErrorCause

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

        public java.util.Optional<org.slf4j.Marker> getMarker()
      • copy

        public CapturedLogEvent copy​(org.slf4j.event.Level level,
                                     java.lang.String message,
                                     scala.Option<java.lang.Throwable> cause,
                                     scala.Option<org.slf4j.Marker> marker)
      • copy$default$1

        public org.slf4j.event.Level copy$default$1()
      • 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<org.slf4j.Marker> copy$default$4()
      • 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
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • 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