Package org.ops4j.pax.logging
Interface PaxLoggingConstants
-
public interface PaxLoggingConstantsDifferent constants used across Pax Logging.
Constants names use the following prefixes:
LOGGING_CFG_- for system or context property namesPID_CFG_- for property names found inorg.ops4j.pax.loggingPIDSERVICE_PROPERTY_- for names of OSGi service properties
-
-
Field Summary
Fields Modifier and Type Field Description static String_LOG4J2_MESSAGEPrivate key to pass original Log4j2org.apache.logging.log4j.message.Messageif it's going to be used by Log4j2 backend (see https://ops4j1.jira.com/browse/PAXLOGGING-302)static StringEVENT_ADMIN_CONFIGURATION_TOPICEventAdmin topic name to publish events related to (re)configuration of logging backend.static StringLOGGING_CFG_DEFAULT_LOG_LEVELSystem or context (in that order) property that specifies threshold for fallback logger used behind all facades, handled by pax-logging-api.static StringLOGGING_CFG_ENABLE_EVENT_ADMINSystem or context property to disable (because its enabled by default) Event Admin support (even if it's available).static StringLOGGING_CFG_ENABLE_LOG_READER_SERVICESystem or context property to disable (because its enabled by default)LogReaderServiceregistration.static StringLOGGING_CFG_FRAMEWORK_EVENTS_LOG_LEVELSystem or context (in that order) property setting the threshold for framework/bundle/service events.static StringLOGGING_CFG_INHERIT_THREAD_CONTEXT_MAPSystem property to disable (because its enabled by default) thread map inheritance inPaxContextstatic StringLOGGING_CFG_LOG4J2_ERRORS_AS_EXCEPTIONSystem or context property that can indicate whether to throw exceptions from log4j2 configuration methods when ERROR occurs.static StringLOGGING_CFG_LOGBACK_CONFIGURATION_FILESystem or context (in that order) property that sets Logback configuration file (not generic URI - just a path).static StringLOGGING_CFG_LOGBACK_USE_STATIC_CONTEXTContext property that switches from privatech.qos.logback.classic.LoggerContextto one managed byorg.slf4j.impl.StaticLoggerBinder#defaultLoggerContext(whereStaticLoggerBinderis the one available in logback-classic).static StringLOGGING_CFG_LOGSERVICE_RANKINGSystem or context (in that order) property that specifies service ranking forPaxLoggingServicestatic StringLOGGING_CFG_PROPERTY_FILESystem or context property that can indicate alternative file in format specific to the backend used instead of the properties from Configuration Admin.static StringLOGGING_CFG_SKIP_JULSystem or context (in that order) property to skip Java Util Logging bridge registration.static StringLOGGING_CFG_SKIP_JUL_RESETSystem or context (in that order) property to skipLogManager.reset()invocation when bridging JUL to Pax Logging.static StringLOGGING_CFG_SKIP_JUL_SYNCHRONIZED_FORMATTERSystem or context (in that order) property to use single, synchronizedSimpleFormatterinJdkHandler.publish(LogRecord)(which is the default) or new instance should be used for each event (to prevent deadlocks in special circumstances).static StringLOGGING_CFG_TLS_LOGGING_MODESystem property that specifies the TLS debug logging mode.static StringLOGGING_CFG_USE_BUFFERING_FALLBACK_LOGGERSystem or context (in that order) property that selects buffering fallback logger.static StringLOGGING_CFG_USE_FILE_FALLBACK_LOGGERSystem or context (in that order) property that selects file-based fallback logger.static StringLOGGING_CFG_USE_LOCKSSystem or context property to configure locking just likePID_CFG_USE_LOCKS.static StringLOGGING_CONFIGURATION_PIDThe Managed Service PID for logging configuration.static String[]LOGGING_LOGSERVICE_NAMESEach backend will register its service under theseobjectClassnames.static StringPAX_LOGGING_PROPERTY_FILEDefault file looked up during startup to override Configuration Admin configstatic StringPID_CFG_LOG_READER_SIZEorg.osp4j.pax.loggingPID property to specify max size forLogReaderServicestatic StringPID_CFG_LOG_READER_SIZE_LEGACYorg.osp4j.pax.loggingPID property to specify max size forLogReaderServicestatic StringPID_CFG_LOG4J2_ASYNCorg.osp4j.pax.loggingPID property to specify whether async context should be used.static StringPID_CFG_LOG4J2_CONFIG_FILEorg.osp4j.pax.loggingPID property to specify XML (or any supported) file (not URL) with Log4J2 configuration.static StringPID_CFG_LOG4J2_DEFAULTS_FILEorg.osp4j.pax.loggingPID property to specify properties file with default Log4J2 configuration that may be overriden by further configuration in PID file.static StringPID_CFG_LOGBACK_CONFIG_FILEorg.osp4j.pax.loggingPID property to specify XML file with Logback configurationstatic StringPID_CFG_USE_LOCKSorg.osp4j.pax.loggingPID property to specify whether to use locks during (re)configuration.static StringSERVICE_PROPERTY_APPENDER_NAME_PROPERTYService property to filterPaxAppenderOSGi servicesstatic StringSERVICE_PROPERTY_ERRORHANDLER_NAME_PROPERTYService property to filterPaxErrorHandlerOSGi servicesstatic StringSERVICE_PROPERTY_FILTER_NAME_PROPERTYService property to filterPaxFilterOSGi servicesstatic StringSERVICE_PROPERTY_LAYOUT_NAME_PROPERTYService property to filterPaxLayoutOSGi services
-
-
-
Field Detail
-
LOGGING_CONFIGURATION_PID
static final String LOGGING_CONFIGURATION_PID
The Managed Service PID for logging configuration. Format is specific to chosen backend.- See Also:
- Constant Field Values
-
LOGGING_LOGSERVICE_NAMES
static final String[] LOGGING_LOGSERVICE_NAMES
Each backend will register its service under theseobjectClassnames.
-
LOGGING_CFG_LOGSERVICE_RANKING
static final String LOGGING_CFG_LOGSERVICE_RANKING
System or context (in that order) property that specifies service ranking forPaxLoggingService- See Also:
- Constant Field Values
-
LOGGING_CFG_SKIP_JUL
static final String LOGGING_CFG_SKIP_JUL
System or context (in that order) property to skip Java Util Logging bridge registration.- See Also:
- Constant Field Values
-
LOGGING_CFG_SKIP_JUL_RESET
static final String LOGGING_CFG_SKIP_JUL_RESET
System or context (in that order) property to skipLogManager.reset()invocation when bridging JUL to Pax Logging.- See Also:
- Constant Field Values
-
LOGGING_CFG_SKIP_JUL_SYNCHRONIZED_FORMATTER
static final String LOGGING_CFG_SKIP_JUL_SYNCHRONIZED_FORMATTER
System or context (in that order) property to use single, synchronizedSimpleFormatterinJdkHandler.publish(LogRecord)(which is the default) or new instance should be used for each event (to prevent deadlocks in special circumstances).- See Also:
- Constant Field Values
-
LOGGING_CFG_FRAMEWORK_EVENTS_LOG_LEVEL
static final String LOGGING_CFG_FRAMEWORK_EVENTS_LOG_LEVEL
System or context (in that order) property setting the threshold for framework/bundle/service events. OSGi Compendium R7, 101.8 "Mapping of Events" defines levels for standard events and with this property we can filter out some of them.- See Also:
- Constant Field Values
-
LOGGING_CFG_DEFAULT_LOG_LEVEL
static final String LOGGING_CFG_DEFAULT_LOG_LEVEL
System or context (in that order) property that specifies threshold for fallback logger used behind all facades, handled by pax-logging-api.- See Also:
- Constant Field Values
-
LOGGING_CFG_USE_BUFFERING_FALLBACK_LOGGER
static final String LOGGING_CFG_USE_BUFFERING_FALLBACK_LOGGER
System or context (in that order) property that selects buffering fallback logger.- See Also:
- Constant Field Values
-
LOGGING_CFG_USE_FILE_FALLBACK_LOGGER
static final String LOGGING_CFG_USE_FILE_FALLBACK_LOGGER
System or context (in that order) property that selects file-based fallback logger. The value should be writable filename. Turning on this logger will enable synchronization and register singleton stream used by all instances ofFileServiceLog.- See Also:
- Constant Field Values
-
LOGGING_CFG_TLS_LOGGING_MODE
static final String LOGGING_CFG_TLS_LOGGING_MODE
System property that specifies the TLS debug logging mode. The TLS records logging modes are:- no_logging - TLS messages are not logged
- no_hex_dumps_logging - all messages except hex dumps are logged
- debug_logging - all messages are logged
- See Also:
- Constant Field Values
-
PID_CFG_LOG_READER_SIZE_LEGACY
static final String PID_CFG_LOG_READER_SIZE_LEGACY
org.osp4j.pax.loggingPID property to specify max size forLogReaderService- See Also:
- Constant Field Values
-
PID_CFG_LOG_READER_SIZE
static final String PID_CFG_LOG_READER_SIZE
org.osp4j.pax.loggingPID property to specify max size forLogReaderService- See Also:
- Constant Field Values
-
SERVICE_PROPERTY_APPENDER_NAME_PROPERTY
static final String SERVICE_PROPERTY_APPENDER_NAME_PROPERTY
Service property to filterPaxAppenderOSGi services- See Also:
- Constant Field Values
-
SERVICE_PROPERTY_LAYOUT_NAME_PROPERTY
static final String SERVICE_PROPERTY_LAYOUT_NAME_PROPERTY
Service property to filterPaxLayoutOSGi services- See Also:
- Constant Field Values
-
SERVICE_PROPERTY_FILTER_NAME_PROPERTY
static final String SERVICE_PROPERTY_FILTER_NAME_PROPERTY
Service property to filterPaxFilterOSGi services- See Also:
- Constant Field Values
-
SERVICE_PROPERTY_ERRORHANDLER_NAME_PROPERTY
static final String SERVICE_PROPERTY_ERRORHANDLER_NAME_PROPERTY
Service property to filterPaxErrorHandlerOSGi services- See Also:
- Constant Field Values
-
EVENT_ADMIN_CONFIGURATION_TOPIC
static final String EVENT_ADMIN_CONFIGURATION_TOPIC
EventAdmin topic name to publish events related to (re)configuration of logging backend.- See Also:
- Constant Field Values
-
LOGGING_CFG_LOGBACK_USE_STATIC_CONTEXT
static final String LOGGING_CFG_LOGBACK_USE_STATIC_CONTEXT
Context property that switches from privatech.qos.logback.classic.LoggerContextto one managed byorg.slf4j.impl.StaticLoggerBinder#defaultLoggerContext(whereStaticLoggerBinderis the one available in logback-classic).- See Also:
- Constant Field Values
-
LOGGING_CFG_LOGBACK_CONFIGURATION_FILE
static final String LOGGING_CFG_LOGBACK_CONFIGURATION_FILE
System or context (in that order) property that sets Logback configuration file (not generic URI - just a path). See https://logback.qos.ch/manual/configuration.html- See Also:
- Constant Field Values
-
LOGGING_CFG_PROPERTY_FILE
static final String LOGGING_CFG_PROPERTY_FILE
System or context property that can indicate alternative file in format specific to the backend used instead of the properties from Configuration Admin. Useful in tests or in environment without Configuration Admin.- See Also:
- Constant Field Values
-
LOGGING_CFG_LOG4J2_ERRORS_AS_EXCEPTION
static final String LOGGING_CFG_LOG4J2_ERRORS_AS_EXCEPTION
System or context property that can indicate whether to throw exceptions from log4j2 configuration methods when ERROR occurs. Normally ERRORs are only printed to org.apache.logging.log4j.status.StatusLogger so by default this value isfalse.- See Also:
- Constant Field Values
-
PID_CFG_LOGBACK_CONFIG_FILE
static final String PID_CFG_LOGBACK_CONFIG_FILE
org.osp4j.pax.loggingPID property to specify XML file with Logback configuration- See Also:
- Constant Field Values
-
PID_CFG_LOG4J2_CONFIG_FILE
static final String PID_CFG_LOG4J2_CONFIG_FILE
org.osp4j.pax.loggingPID property to specify XML (or any supported) file (not URL) with Log4J2 configuration. Can be comma-separated and compliant to Log4J2'slog4j.configurationFile- See Also:
- Constant Field Values
-
PID_CFG_LOG4J2_DEFAULTS_FILE
static final String PID_CFG_LOG4J2_DEFAULTS_FILE
org.osp4j.pax.loggingPID property to specify properties file with default Log4J2 configuration that may be overriden by further configuration in PID file.- See Also:
- Constant Field Values
-
PID_CFG_LOG4J2_ASYNC
static final String PID_CFG_LOG4J2_ASYNC
org.osp4j.pax.loggingPID property to specify whether async context should be used. Used both for case where properties are taken directly from PID configuration or whenPID_CFG_LOG4J2_CONFIG_FILEis used.- See Also:
- Constant Field Values
-
PID_CFG_USE_LOCKS
static final String PID_CFG_USE_LOCKS
org.osp4j.pax.loggingPID property to specify whether to use locks during (re)configuration. By default, log operations use locks to prevent reconfiguration during actual logging. But there are special cases (see: https://ops4j1.jira.com/browse/PAXLOGGING-191) when reconfiguration may lead to calling custom appender code, which start some threads that call yet another code which call log statements. This option may be turned off (value:false) to disable locks.- See Also:
- Constant Field Values
-
LOGGING_CFG_USE_LOCKS
static final String LOGGING_CFG_USE_LOCKS
System or context property to configure locking just likePID_CFG_USE_LOCKS.- See Also:
- Constant Field Values
-
LOGGING_CFG_INHERIT_THREAD_CONTEXT_MAP
static final String LOGGING_CFG_INHERIT_THREAD_CONTEXT_MAP
System property to disable (because its enabled by default) thread map inheritance inPaxContext- See Also:
- Constant Field Values
-
_LOG4J2_MESSAGE
static final String _LOG4J2_MESSAGE
Private key to pass original Log4j2org.apache.logging.log4j.message.Messageif it's going to be used by Log4j2 backend (see https://ops4j1.jira.com/browse/PAXLOGGING-302)- See Also:
- Constant Field Values
-
PAX_LOGGING_PROPERTY_FILE
static final String PAX_LOGGING_PROPERTY_FILE
Default file looked up during startup to override Configuration Admin config- See Also:
- Constant Field Values
-
LOGGING_CFG_ENABLE_EVENT_ADMIN
static final String LOGGING_CFG_ENABLE_EVENT_ADMIN
System or context property to disable (because its enabled by default) Event Admin support (even if it's available). If not specified, it is assumed that Event Admin is enabled.- See Also:
- Constant Field Values
-
LOGGING_CFG_ENABLE_LOG_READER_SERVICE
static final String LOGGING_CFG_ENABLE_LOG_READER_SERVICE
System or context property to disable (because its enabled by default)LogReaderServiceregistration. If not specified, it is assumed that this service is registered. This is mandated by OSGi CMPN Log Specification, but impacts performance. So it can be disabled if needed.- See Also:
- Constant Field Values
-
-