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)
        Parameters:
        logService - registered OSGi LogService
        Returns:
        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

        Parameters:
        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
        Overrides:
        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
        Returns:
        Receive: Store LogEvent or become initialised