Package org.apache.pekko.event
Interface LoggingBus
- All Superinterfaces:
ActorEventBus,EventBus
- All Known Implementing Classes:
EventStream
This trait brings log level handling to the EventStream: it reads the log
levels for the initial logging (StandardOutLogger) and the loggers & level
for after-init logging, possibly keeping the StandardOutLogger enabled if
it is part of the configured loggers. All configured loggers are treated as
system services and managed by this trait, i.e. subscribed/unsubscribed in
response to changes of LoggingBus.logLevel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogger(org.apache.pekko.actor.ActorSystemImpl system, Class<? extends Actor> clazz, Logging.LogLevel level, String logName) INTERNAL APIvoiddefaultLoggersStopped_$eq(boolean x$1) voidloggers_$eq(scala.collection.immutable.Seq<ActorRef> x$1) logLevel()Query currently set log level.voidrestorePreviousLoggers(scala.collection.immutable.Vector<ActorRef> started, scala.collection.immutable.Seq<ActorRef> previousLoggers, Logging.LogLevel previousLogLevel) voidsetLogLevel(Logging.LogLevel level) Change log level: default loggers (i.e.voidvoidstartDefaultLoggers(org.apache.pekko.actor.ActorSystemImpl system) Internal Pekko use onlyvoidInternal Pekko use onlyvoidstopDefaultLoggers(ActorSystem system) Internal Pekko use onlyvoidstopLogger(ActorRef logger) voidstopLoggerSafely(ActorRef logger, Throwable cause) Methods inherited from interface org.apache.pekko.event.ActorEventBus
compareSubscribersMethods inherited from interface org.apache.pekko.event.EventBus
publish, subscribe, unsubscribe, unsubscribe
-
Method Details
-
_logLevel_$eq
-
addLogger
ActorRef addLogger(org.apache.pekko.actor.ActorSystemImpl system, Class<? extends Actor> clazz, Logging.LogLevel level, String logName) INTERNAL API -
defaultLoggersStopped_$eq
void defaultLoggersStopped_$eq(boolean x$1) -
logLevel
Logging.LogLevel logLevel()Query currently set log level. See object Logging for more information. -
loggers_$eq
-
restorePreviousLoggers
void restorePreviousLoggers(scala.collection.immutable.Vector<ActorRef> started, scala.collection.immutable.Seq<ActorRef> previousLoggers, Logging.LogLevel previousLogLevel) -
setLogLevel
Change log level: default loggers (i.e. from configuration file) are subscribed/unsubscribed as necessary so that they listen to all levels which are at least as severe as the given one. See object Logging for more information.NOTE: if the StandardOutLogger is configured also as normal logger, it will not participate in the automatic management of log level subscriptions!
-
setUpStdoutLogger
-
startDefaultLoggers
void startDefaultLoggers(org.apache.pekko.actor.ActorSystemImpl system) Internal Pekko use only -
startStdoutLogger
Internal Pekko use only -
stopDefaultLoggers
Internal Pekko use only -
stopLogger
-
stopLoggerSafely
-