|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggingBus
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 | |
---|---|
Logging.LogLevel |
_logLevel()
|
ActorRef |
addLogger(ActorSystemImpl system,
java.lang.Class<? extends Actor> clazz,
Logging.LogLevel level,
java.lang.String logName)
INTERNAL API |
ReentrantGuard |
guard()
|
scala.collection.Seq<ActorRef> |
loggers()
|
Logging.LogLevel |
logLevel()
Query currently set log level. |
void |
setLogLevel(Logging.LogLevel level)
Change log level: default loggers (i.e. |
void |
setUpStdoutLogger(ActorSystem.Settings config)
|
void |
startDefaultLoggers(ActorSystemImpl system)
Internal Akka use only |
void |
startStdoutLogger(ActorSystem.Settings config)
Internal Akka use only |
void |
stopDefaultLoggers(ActorSystem system)
Internal Akka use only |
Methods inherited from interface akka.event.ActorEventBus |
---|
compareSubscribers |
Methods inherited from interface akka.event.EventBus |
---|
publish, subscribe, unsubscribe, unsubscribe |
Method Detail |
---|
ReentrantGuard guard()
scala.collection.Seq<ActorRef> loggers()
Logging.LogLevel _logLevel()
Logging.LogLevel logLevel()
void setLogLevel(Logging.LogLevel level)
NOTE: if the StandardOutLogger is configured also as normal logger, it will not participate in the automatic management of log level subscriptions!
level
- (undocumented)void setUpStdoutLogger(ActorSystem.Settings config)
void startStdoutLogger(ActorSystem.Settings config)
config
- (undocumented)void startDefaultLoggers(ActorSystemImpl system)
system
- (undocumented)void stopDefaultLoggers(ActorSystem system)
system
- (undocumented)ActorRef addLogger(ActorSystemImpl system, java.lang.Class<? extends Actor> clazz, Logging.LogLevel level, java.lang.String logName)
system
- (undocumented)clazz
- (undocumented)level
- (undocumented)logName
- (undocumented)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |