Interface BRunnerLoggerConfig
public interface BRunnerLoggerConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final BRunnerLogger.LogLevelstatic final LogSelectionStrategystatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic BRunnerLogger.LogLevelOverloaded method using the default selection strategy.static BRunnerLogger.LogLevelgetConfiguredLogLevel(LogSelectionStrategy strategy) Scans the classpath for implementations of BRunnerLoggerConfig.static Stringstatic String
-
Field Details
-
DEFAULT_LOG_LEVEL
-
DEFALUT_LOG_NAME
- See Also:
-
MEASURER_LOG_NAME
- See Also:
-
DEFAULT_SELECTION_STRATEGY
-
-
Method Details
-
getLogFileName
String getLogFileName() -
getOrDefaultLogFileName
-
getOrDefaultMeasurerLogFileName
-
getLogLevel
BRunnerLogger.LogLevel getLogLevel() -
getConfiguredLogLevel
Scans the classpath for implementations of BRunnerLoggerConfig. If none are found, returns DEFAULT_LOG_LEVEL. If one is found, returns its level. If multiple are found, prints a warning and returns a level chosen according to the given strategy.- Parameters:
strategy- the selection strategy to use if multiple instances are found.- Returns:
- the configured log level.
-
getConfiguredLogLevel
Overloaded method using the default selection strategy.
-