public static enum OSI.SystemProperty extends Enum<OSI.SystemProperty>
SystemProperty defines system properties used by OSI.| Enum Constant and Description |
|---|
LOG_LEVEL
Adjusts the general logging level when no more specific level is configured for a logger.
|
LOGBACK_CONFIGURATION_FILE
Sets the logback configuration resource, rarely changed except for testing.
|
LOGBACK_CONTEXT_NAME
Sets the logback context name, equivalently, a short tag identifying the application.
|
LOGBACK_DEBUG
Enables logback debugging.
|
LOGBACK_INCLUDED_RESOURCE
Sets the resource for additional included logging directives.
|
LOGBACK_JANSI
Enables ANSI color codes for logging, including Windows.
|
LOGBACK_JMX
Enables JMX support for logback.
|
LOGBACK_PROPERTIES_RESOURCE
As an alternative to setting system properties, put properties here.
|
LOGBACK_ROOT_APPENDER
Sets the root appender.
|
LOGBACK_STYLE
Sets the default logging style.
|
LOGBACK_STYLES_RESOURCE
Sets a custom style file for logging, rarely changed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the value to the corresponding system property.
|
String |
get()
Gets the value of the corresponding system property.
|
String |
key()
Gets the key string used with system properties.
|
void |
set(String value)
Sets the value of the corresponding system property, or clears it if
null. |
String |
toString() |
static OSI.SystemProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OSI.SystemProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSI.SystemProperty LOGBACK_CONFIGURATION_FILE
Note this is defined by logback. Although looked for on the classpath, logback names this "configurationFile".
OSI.enable()public static final OSI.SystemProperty LOGBACK_CONTEXT_NAME
Use this to distinguish merging of logging from multiple application.
public static final OSI.SystemProperty LOGBACK_PROPERTIES_RESOURCE
These cannot, however, override these system properties which are used before the properties resource is loaded:
public static final OSI.SystemProperty LOGBACK_STYLES_RESOURCE
LOGBACK_STYLES_RESOURCEpublic static final OSI.SystemProperty LOGBACK_STYLE
See osi-logback-styles.properties for help and details.
LOGBACK_STYLES_RESOURCEpublic static final OSI.SystemProperty LOGBACK_INCLUDED_RESOURCE
This is often changed (or one named osi-logback-included.xml is provided in the
application class path) to control logging such as changing log levels.
LOGBACK_INCLUDED_RESOURCEpublic static final OSI.SystemProperty LOGBACK_JMX
public static final OSI.SystemProperty LOGBACK_DEBUG
Enabling logback debugging sets log.level to "DEBUG".
LOG_LEVELpublic static final OSI.SystemProperty LOG_LEVEL
Levelpublic static final OSI.SystemProperty LOGBACK_ROOT_APPENDER
Use in combination with a custom appender defined in osi-logback-included.xml.
LOGBACK_INCLUDED_RESOURCEpublic static final OSI.SystemProperty LOGBACK_JANSI
public static OSI.SystemProperty[] values()
for (OSI.SystemProperty c : OSI.SystemProperty.values()) System.out.println(c);
public static OSI.SystemProperty valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull public final String key()
@Nullable public final String get()
null if undefinedpublic final void set(@Nullable String value)
null.value - the system property value or null to clearpublic final void clear()
Copyright © 2013–2015 binkley's BLOG. All rights reserved.