Package akka.stream
Class RestartSettings.LogSettings
- java.lang.Object
-
- akka.stream.RestartSettings.LogSettings
-
- Enclosing class:
- RestartSettings
public static final class RestartSettings.LogSettings extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LogSettings(Logging.LogLevel logLevel, Logging.LogLevel criticalLogLevel, int criticalLogLevelAfter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Logging.LogLevel
criticalLogLevel()
int
criticalLogLevelAfter()
Logging.LogLevel
logLevel()
RestartSettings.LogSettings
withCriticalLogLevel(Logging.LogLevel criticalLevel, int afterErrors)
Possibility to use another log level after a given number of errors.RestartSettings.LogSettings
withLogLevel(Logging.LogLevel level)
-
-
-
Constructor Detail
-
LogSettings
public LogSettings(Logging.LogLevel logLevel, Logging.LogLevel criticalLogLevel, int criticalLogLevelAfter)
-
-
Method Detail
-
logLevel
public Logging.LogLevel logLevel()
-
criticalLogLevel
public Logging.LogLevel criticalLogLevel()
-
criticalLogLevelAfter
public int criticalLogLevelAfter()
-
withLogLevel
public RestartSettings.LogSettings withLogLevel(Logging.LogLevel level)
-
withCriticalLogLevel
public RestartSettings.LogSettings withCriticalLogLevel(Logging.LogLevel criticalLevel, int afterErrors)
Possibility to use another log level after a given number of errors. The initial errors are logged at the level defined withLogSettings.withLogLevel
. For example, the first 3 errors can be logged at INFO level and thereafter at ERROR level.The counter (and log level) is reset after the
RestartSettings.maxRestartsWithin
duration.
-
-