public class DefaultOSGiLogger extends Logging.DefaultLogger
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
DefaultOSGiLogger() |
Modifier and Type | Method and Description |
---|---|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
initialisedReceive(org.osgi.service.log.LogService logService)
Behaviour of the Event handler that is setup (has received a LogService)
|
void |
logMessage(org.osgi.service.log.LogService logService,
Logging.LogEvent event)
Logs a message in an OSGi LogService
|
java.lang.String |
messageFormat() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
uninitialisedReceive()
Behaviour of the logger that waits for its LogService
|
context, self
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandled
public java.lang.String messageFormat()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
receive
in interface Actor
receive
in class Logging.DefaultLogger
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> uninitialisedReceive()
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> initialisedReceive(org.osgi.service.log.LogService logService)
logService
- registered OSGi LogServicepublic void logMessage(org.osgi.service.log.LogService logService, Logging.LogEvent event)
logService
- OSGi LogService registered and used for loggingevent
- akka LogEvent that is logged using the LogService