Package org.apache.pekko.stream
Class RestartSettings.LogSettings
java.lang.Object
org.apache.pekko.stream.RestartSettings.LogSettings
- Enclosing class:
- RestartSettings
-
Constructor Summary
ConstructorsConstructorDescriptionLogSettings(Logging.LogLevel logLevel, Logging.LogLevel criticalLogLevel, int criticalLogLevelAfter) -
Method Summary
Modifier and TypeMethodDescriptionintlogLevel()withCriticalLogLevel(Logging.LogLevel criticalLevel, int afterErrors) Possibility to use another log level after a given number of errors.withLogLevel(Logging.LogLevel level)
-
Constructor Details
-
LogSettings
public LogSettings(Logging.LogLevel logLevel, Logging.LogLevel criticalLogLevel, int criticalLogLevelAfter)
-
-
Method Details
-
logLevel
-
criticalLogLevel
-
criticalLogLevelAfter
public int criticalLogLevelAfter() -
withLogLevel
-
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.maxRestartsWithinduration.
-