public interface PaxLoggingConstants
Different constants used across Pax Logging.
Constants names use the following prefixes:
LOGGING_CFG_ - for system or context property namesPID_CFG_ - for property names found in org.ops4j.pax.logging PIDSERVICE_PROPERTY_ - for names of OSGi service properties| Modifier and Type | Field and Description |
|---|---|
static String |
_LOG4J2_MESSAGE
Private key to pass original Log4j2
org.apache.logging.log4j.message.Message
if it's going to be used by Log4j2 backend (see https://ops4j1.jira.com/browse/PAXLOGGING-302) |
static String |
EVENT_ADMIN_CONFIGURATION_TOPIC
EventAdmin topic name to publish events related to (re)configuration of logging backend.
|
static 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.
|
static String |
LOGGING_CFG_FRAMEWORK_EVENTS_LOG_LEVEL
System or context (in that order) property setting the threshold for framework/bundle/service events.
|
static String |
LOGGING_CFG_INHERIT_THREAD_CONTEXT_MAP
System property to disable (because its enabled by default) thread map inheritance in
PaxContext |
static 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.
|
static String |
LOGGING_CFG_LOGBACK_CONFIGURATION_FILE
System or context (in that order) property that sets Logback configuration file (not generic URI - just a path).
|
static String |
LOGGING_CFG_LOGBACK_USE_STATIC_CONTEXT
Context property that switches from private
ch.qos.logback.classic.LoggerContext to one
managed by org.slf4j.impl.StaticLoggerBinder#defaultLoggerContext (where StaticLoggerBinder
is the one available in logback-classic). |
static String |
LOGGING_CFG_LOGSERVICE_RANKING
System or context (in that order) property that specifies service ranking for
PaxLoggingService |
static 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.
|
static String |
LOGGING_CFG_SKIP_JUL
System or context (in that order) property to skip Java Util Logging bridge registration.
|
static String |
LOGGING_CFG_SKIP_JUL_RESET
System or context (in that order) property to skip
LogManager.reset() invocation when bridging JUL
to Pax Logging. |
static String |
LOGGING_CFG_TLS_LOGGING_MODE
System property that specifies the TLS debug logging mode.
|
static String |
LOGGING_CFG_USE_BUFFERING_FALLBACK_LOGGER
System or context (in that order) property that selects buffering fallback logger.
|
static String |
LOGGING_CFG_USE_FILE_FALLBACK_LOGGER
System or context (in that order) property that selects file-based fallback logger.
|
static String |
LOGGING_CFG_USE_LOCKS
System or context property to configure locking just like
PID_CFG_USE_LOCKS. |
static String |
LOGGING_CONFIGURATION_PID
The Managed Service PID for logging configuration.
|
static String[] |
LOGGING_LOGSERVICE_NAMES
Each backend will register its service under these
objectClass names. |
static String |
PAX_LOGGING_PROPERTY_FILE
Default file looked up during startup to override Configuration Admin config
|
static String |
PID_CFG_LOG_READER_SIZE
org.osp4j.pax.logging PID property to specify max size for
LogReaderService |
static String |
PID_CFG_LOG_READER_SIZE_LEGACY
org.osp4j.pax.logging PID property to specify max size for
LogReaderService |
static String |
PID_CFG_LOG4J2_ASYNC
org.osp4j.pax.logging PID property to specify whether async context should be used. |
static String |
PID_CFG_LOG4J2_CONFIG_FILE
org.osp4j.pax.logging PID property to specify XML (or any supported) file (not URL)
with Log4J2 configuration. |
static String |
PID_CFG_LOG4J2_DEFAULTS_FILE
org.osp4j.pax.logging PID property to specify properties file with default Log4J2 configuration
that may be overriden by further configuration in PID file. |
static String |
PID_CFG_LOGBACK_CONFIG_FILE
org.osp4j.pax.logging PID property to specify XML file with Logback configuration |
static String |
PID_CFG_USE_LOCKS
org.osp4j.pax.logging PID property to specify whether to use locks during (re)configuration. |
static String |
SERVICE_PROPERTY_APPENDER_NAME_PROPERTY
Service property to filter
PaxAppender OSGi services |
static String |
SERVICE_PROPERTY_ERRORHANDLER_NAME_PROPERTY
Service property to filter
PaxErrorHandler OSGi services |
static String |
SERVICE_PROPERTY_FILTER_NAME_PROPERTY
Service property to filter
PaxFilter OSGi services |
static String |
SERVICE_PROPERTY_LAYOUT_NAME_PROPERTY
Service property to filter
PaxLayout OSGi services |
static final String LOGGING_CONFIGURATION_PID
static final String[] LOGGING_LOGSERVICE_NAMES
objectClass names.static final String LOGGING_CFG_LOGSERVICE_RANKING
PaxLoggingServicestatic final String LOGGING_CFG_SKIP_JUL
static final String LOGGING_CFG_SKIP_JUL_RESET
LogManager.reset() invocation when bridging JUL
to Pax Logging.static final String LOGGING_CFG_FRAMEWORK_EVENTS_LOG_LEVEL
static final String LOGGING_CFG_DEFAULT_LOG_LEVEL
static final String LOGGING_CFG_USE_BUFFERING_FALLBACK_LOGGER
static final String LOGGING_CFG_USE_FILE_FALLBACK_LOGGER
FileServiceLog.static final String LOGGING_CFG_TLS_LOGGING_MODE
static final String PID_CFG_LOG_READER_SIZE_LEGACY
org.osp4j.pax.logging PID property to specify max size for
LogReaderServicestatic final String PID_CFG_LOG_READER_SIZE
org.osp4j.pax.logging PID property to specify max size for
LogReaderServicestatic final String SERVICE_PROPERTY_APPENDER_NAME_PROPERTY
PaxAppender OSGi servicesstatic final String SERVICE_PROPERTY_LAYOUT_NAME_PROPERTY
PaxLayout OSGi servicesstatic final String SERVICE_PROPERTY_FILTER_NAME_PROPERTY
PaxFilter OSGi servicesstatic final String SERVICE_PROPERTY_ERRORHANDLER_NAME_PROPERTY
PaxErrorHandler OSGi servicesstatic final String EVENT_ADMIN_CONFIGURATION_TOPIC
static final String LOGGING_CFG_LOGBACK_USE_STATIC_CONTEXT
ch.qos.logback.classic.LoggerContext to one
managed by org.slf4j.impl.StaticLoggerBinder#defaultLoggerContext (where StaticLoggerBinder
is the one available in logback-classic).static final String LOGGING_CFG_LOGBACK_CONFIGURATION_FILE
static final String LOGGING_CFG_PROPERTY_FILE
static final String LOGGING_CFG_LOG4J2_ERRORS_AS_EXCEPTION
false.static final String PID_CFG_LOGBACK_CONFIG_FILE
org.osp4j.pax.logging PID property to specify XML file with Logback configurationstatic final String PID_CFG_LOG4J2_CONFIG_FILE
org.osp4j.pax.logging PID property to specify XML (or any supported) file (not URL)
with Log4J2 configuration. Can be comma-separated and compliant to Log4J2's log4j.configurationFilestatic final String PID_CFG_LOG4J2_DEFAULTS_FILE
org.osp4j.pax.logging PID property to specify properties file with default Log4J2 configuration
that may be overriden by further configuration in PID file.static final String PID_CFG_LOG4J2_ASYNC
org.osp4j.pax.logging PID property to specify whether async context should be used. Used both
for case where properties are taken directly from PID configuration or when
PID_CFG_LOG4J2_CONFIG_FILE is used.static final String PID_CFG_USE_LOCKS
org.osp4j.pax.logging PID 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.static final String LOGGING_CFG_USE_LOCKS
PID_CFG_USE_LOCKS.static final String LOGGING_CFG_INHERIT_THREAD_CONTEXT_MAP
PaxContextstatic final String _LOG4J2_MESSAGE
org.apache.logging.log4j.message.Message
if it's going to be used by Log4j2 backend (see https://ops4j1.jira.com/browse/PAXLOGGING-302)static final String PAX_LOGGING_PROPERTY_FILE
Copyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.