Class RefreshableLogServiceConfiguration
- java.lang.Object
-
- elf4j.engine.service.configuration.RefreshableLogServiceConfiguration
-
- All Implemented Interfaces:
LogServiceConfiguration,Refreshable
public class RefreshableLogServiceConfiguration extends Object implements LogServiceConfiguration, Refreshable
-
-
Constructor Summary
Constructors Constructor Description RefreshableLogServiceConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEventProcessorgetLogEventProcessor()LogWritergetLogServiceWriter()PropertiesgetProperties()StandardOutputgetStandardOutput()booleanisEnabled(NativeLogger nativeLogger)voidrefresh(Properties properties)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elf4j.engine.service.configuration.Refreshable
refresh
-
-
-
-
Method Detail
-
getProperties
public Properties getProperties()
- Specified by:
getPropertiesin interfaceLogServiceConfiguration- Returns:
- entire configuration properties
-
getLogServiceWriter
public LogWriter getLogServiceWriter()
- Specified by:
getLogServiceWriterin interfaceLogServiceConfiguration- Returns:
- the top level (group) writer for the log service, may contain multiple individual writers.
-
isEnabled
public boolean isEnabled(NativeLogger nativeLogger)
- Specified by:
isEnabledin interfaceLogServiceConfiguration- Parameters:
nativeLogger- the logger to check for enablement against configuration- Returns:
- true if the specified logger's level is at or above the configured minimum output level of both the writer and that configured for the logger's caller/owner class; otherwise, false.
-
getStandardOutput
public StandardOutput getStandardOutput()
- Specified by:
getStandardOutputin interfaceLogServiceConfiguration- Returns:
- buffered standard out stream writer
-
getLogEventProcessor
public LogEventProcessor getLogEventProcessor()
- Specified by:
getLogEventProcessorin interfaceLogServiceConfiguration- Returns:
- configured log event processor
-
refresh
public void refresh(@Nullable Properties properties)
- Specified by:
refreshin interfaceRefreshable- Parameters:
properties- used to refresh the logging configuration. Ifnull, only properties reloaded from the configuration file will be used. Otherwise, the specified properties will replace all current properties and configuration file is ignored.
-
-