Package akka.osgi

Class DefaultOSGiLogger

    • Constructor Detail

      • DefaultOSGiLogger

        public DefaultOSGiLogger()
    • Method Detail

      • initialisedReceive

        public scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> initialisedReceive​(org.osgi.service.log.LogService logService)
        Behavior of the Event handler that is setup (has received a LogService)
        logService - registered OSGi LogService
        Receive : Logs LogEvent or go back to the uninitialised state
      • logMessage

        public void logMessage​(org.osgi.service.log.LogService logService,
                               Logging.LogEvent event)
        Logs a message in an OSGi LogService

        logService - OSGi LogService registered and used for logging
        event - akka LogEvent that is logged using the LogService
      • messageFormat

        public java.lang.String messageFormat()
      • receive

        public scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> receive()
        Description copied from interface: Actor
        Scala API: This defines the initial actor behavior, it must return a partial function with the actor logic.
        Specified by:
        receive in interface Actor
        receive in class Logging.DefaultLogger
      • uninitialisedReceive

        public scala.PartialFunction<java.lang.Object,​scala.runtime.BoxedUnit> uninitialisedReceive()
        Behavior of the logger that waits for its LogService
        Receive: Store LogEvent or become initialised