public class DefaultPropertiesLoader extends java.lang.Object implements PropertiesLoader
| Constructor and Description |
|---|
DefaultPropertiesLoader() |
DefaultPropertiesLoader(java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
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?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic DefaultPropertiesLoader()
public DefaultPropertiesLoader(java.util.Properties properties)
public org.apache.logging.log4j.Level getRootLevel()
PropertiesLoadergetRootLevel in interface PropertiesLoaderpublic java.lang.Boolean isConsoleEnabled()
PropertiesLoaderisConsoleEnabled in interface PropertiesLoaderpublic org.apache.logging.log4j.Level getConsoleLevel()
PropertiesLoadergetConsoleLevel in interface PropertiesLoaderpublic java.util.List<java.lang.String> getConsolePackages()
PropertiesLoader
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.
getConsolePackages in interface PropertiesLoaderpublic java.lang.String getConsolePatternLayout()
PropertiesLoaderMore 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.
getConsolePatternLayout in interface PropertiesLoaderpublic java.lang.String getConsoleIgnoreExceptions()
PropertiesLoaderThe 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.
getConsoleIgnoreExceptions in interface PropertiesLoaderpublic java.lang.String getConsoleTarget()
PropertiesLoadergetConsoleTarget in interface PropertiesLoaderpublic java.lang.Boolean isFileEnabled()
PropertiesLoaderisFileEnabled in interface PropertiesLoaderpublic org.apache.logging.log4j.Level getFileLevel()
PropertiesLoadergetFileLevel in interface PropertiesLoaderpublic java.util.List<java.lang.String> getFilePackages()
PropertiesLoader
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.
getFilePackages in interface PropertiesLoaderpublic java.lang.String getFilePatternLayout()
PropertiesLoaderMore 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.
getFilePatternLayout in interface PropertiesLoaderpublic java.lang.Boolean getFileAppend()
PropertiesLoaderWhen 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.
getFileAppend in interface PropertiesLoaderpublic java.lang.Boolean getCreateFileOnDemand()
PropertiesLoaderThe 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.
getCreateFileOnDemand in interface PropertiesLoaderpublic java.lang.String getFilePattern()
PropertiesLoaderThe pattern of the file name of the archived log file Example: .yyyy-MM-dd This pattern will depends on file systems grow policies.
getFilePattern in interface PropertiesLoaderpublic java.lang.Boolean isRemoteEnabled()
PropertiesLoaderisRemoteEnabled in interface PropertiesLoaderpublic org.apache.logging.log4j.Level getRemoteLevel()
PropertiesLoadergetRemoteLevel in interface PropertiesLoaderpublic java.util.List<java.lang.String> getRemotePackages()
PropertiesLoader
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.
getRemotePackages in interface PropertiesLoaderpublic java.lang.String getRemotePatternLayout()
PropertiesLoaderMore 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.
getRemotePatternLayout in interface PropertiesLoader