Package akka.actor.typed
Class LogOptions
- java.lang.Object
-
- akka.actor.typed.LogOptions
-
- Direct Known Subclasses:
LogOptions.LogOptionsImpl
public abstract class LogOptions extends java.lang.ObjectUser control whether messages are logged or not. This is useful when you want to have an application configuration to control when to log messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogOptions.LogOptionsImplstatic classLogOptions.LogOptionsImpl$
-
Constructor Summary
Constructors Constructor Description LogOptions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static LogOptionsapply()static LogOptionscreate()Java API: Create a new log options.abstract booleanenabled()abstract java.util.Optional<Logger>getLogger()Java APIabstract Logging.LogLevellevel()abstract scala.Option<Logger>logger()abstract LogOptionswithEnabled(boolean enabled)abstract LogOptionswithLevel(Logging.LogLevel level)TheLogging.LogLevelto use when logging messages.abstract LogOptionswithLogger(Logger logger)ALoggerto use when logging messages.
-
-
-
Method Detail
-
apply
public static LogOptions apply()
-
create
public static LogOptions create()
Java API: Create a new log options.- Returns:
- (undocumented)
-
withEnabled
public abstract LogOptions withEnabled(boolean enabled)
-
withLevel
public abstract LogOptions withLevel(Logging.LogLevel level)
TheLogging.LogLevelto use when logging messages.- Parameters:
level- (undocumented)- Returns:
- (undocumented)
-
withLogger
public abstract LogOptions withLogger(Logger logger)
ALoggerto use when logging messages.- Parameters:
logger- (undocumented)- Returns:
- (undocumented)
-
enabled
public abstract boolean enabled()
-
level
public abstract Logging.LogLevel level()
-
logger
public abstract scala.Option<Logger> logger()
-
getLogger
public abstract java.util.Optional<Logger> getLogger()
Java API
-
-