public interface PropertiesLoader
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
get(java.util.Properties prop,
ConfigurationKey key,
java.lang.String defaultValue)
Get a Property value by the given ConfigurationKey, if the properties not found return the default value.
|
java.lang.String |
getConsoleIgnoreExceptions()
Should Console Logging Ignore Exceptions?
|
org.apache.logging.log4j.Level |
getConsoleLevel()
Get Console Log Level
It can be: ALL TRACE DEBUG INFO WARN ERROR FATAL OFF - Custom log levels will be disabled at this project moment. |
java.util.List<java.lang.String> |
getConsolePackages()
Get a List of Packages to configure the Log Hierarchy.
|
java.lang.String |
getConsolePatternLayout()
Gets Console Pattern Layout.
|
java.lang.String |
getConsoleTarget()
Output Stream for Console Logger.
Can be Either "SYSTEM_OUT" or "SYSTEM_ERR".
|
java.lang.Boolean |
getCreateFileOnDemand()
Get the Create File On Demand property.
|
java.lang.Boolean |
getFileAppend()
Get the file append property.
|
org.apache.logging.log4j.Level |
getFileLevel()
Get File Log Level
It can be: ALL TRACE DEBUG INFO WARN ERROR FATAL OFF - Custom log levels will be disabled at this project moment. |
java.util.List<java.lang.String> |
getFilePackages()
Get a List of Packages to configure the Log Hierarchy.
|
java.lang.String |
getFilePattern()
Get the file archiving pattern.
|
java.lang.String |
getFilePatternLayout()
Gets File Pattern Layout.
|
org.apache.logging.log4j.Level |
getRemoteLevel()
Get Remote Log Level
It can be: ALL TRACE DEBUG INFO WARN ERROR FATAL OFF - Custom log levels will be disabled at this project moment. |
java.util.List<java.lang.String> |
getRemotePackages()
Get a List of Packages to configure the Log Hierarchy.
|
java.lang.String |
getRemotePatternLayout()
Gets Remote Pattern Layout.
|
org.apache.logging.log4j.Level |
getRootLevel()
Get Root Log Level
It can be: ALL TRACE DEBUG INFO WARN ERROR FATAL OFF - Custom log levels will be disabled at this project moment. |
java.lang.Boolean |
isConsoleEnabled()
It Should console logging be enabled?
|
java.lang.Boolean |
isFileEnabled()
It Should console logging be enabled?
|
java.lang.Boolean |
isRemoteEnabled()
It Should Remote logging be enabled?
|
org.apache.logging.log4j.Level getRootLevel()
java.lang.Boolean isConsoleEnabled()
org.apache.logging.log4j.Level getConsoleLevel()
java.util.List<java.lang.String> getConsolePackages()
By default The logger engine will consider the same pattern from log4j.
For example, the LoggerConfig named "com.foo" is a parent of the LoggerConfig named "com.foo.Bar".
Similarly,"java" is a parent of "java.util" and an ancestor of "java.util.Vector".
This naming scheme should be familiar to most developers.
java.lang.String getConsolePatternLayout()
More often than not, users wish to customize not only the output destination but also the output format. This is accomplished by associating a Layout with an Appender. The Layout is responsible for formatting the LogEvent according to the user's wishes, whereas an appender takes care of sending the formatted output to its destination.
java.lang.String getConsoleIgnoreExceptions()
The default is true, causing exceptions encountered while appending events to be internally logged and then ignored. When set to false exceptions will be propagated to the caller, instead. You must set this to false when wrapping this Appender in a FailoverAppender.
java.lang.String getConsoleTarget()
java.lang.Boolean isFileEnabled()
org.apache.logging.log4j.Level getFileLevel()
java.util.List<java.lang.String> getFilePackages()
By default The logger engine will consider the same pattern from log4j.
For example, the LoggerConfig named "com.foo" is a parent of the LoggerConfig named "com.foo.Bar".
Similarly,"java" is a parent of "java.util" and an ancestor of "java.util.Vector".
This naming scheme should be familiar to most developers.
java.lang.String getFilePatternLayout()
More often than not, users wish to customize not only the output destination but also the output format. This is accomplished by associating a Layout with an Appender. The Layout is responsible for formatting the LogEvent according to the user's wishes, whereas an appender takes care of sending the formatted output to its destination.
java.lang.Boolean getFileAppend()
When true - the default, records will be appended to the end of the file. When set to false, the file will be cleared before new records are written.
java.lang.Boolean getCreateFileOnDemand()
The appender creates the file on-demand. The appender only creates the file when a log event passes all filters and is routed to this appender. Defaults to false.
java.lang.String getFilePattern()
The pattern of the file name of the archived log file Example: .yyyy-MM-dd This pattern will depends on file systems grow policies.
java.lang.Boolean isRemoteEnabled()
org.apache.logging.log4j.Level getRemoteLevel()
java.util.List<java.lang.String> getRemotePackages()
By default The logger engine will consider the same pattern from log4j.
For example, the LoggerConfig named "com.foo" is a parent of the LoggerConfig named "com.foo.Bar".
Similarly,"java" is a parent of "java.util" and an ancestor of "java.util.Vector".
This naming scheme should be familiar to most developers.
java.lang.String getRemotePatternLayout()
More often than not, users wish to customize not only the output destination but also the output format. This is accomplished by associating a Layout with an Appender. The Layout is responsible for formatting the LogEvent according to the user's wishes, whereas an appender takes care of sending the formatted output to its destination.
default java.lang.String get(java.util.Properties prop,
ConfigurationKey key,
java.lang.String defaultValue)
prop - a Properties objectkey - a ConfigurationKeydefaultValue - a default value