public class LoggingService extends Object implements org.ops4j.pax.logging.spi.PaxAppender, LoggingServiceMBean
PaxAppender which receives PaxLoggingEvents and is the Jolokia endpoint for the Logging UI in the
Admin Console.| Constructor and Description |
|---|
LoggingService(MBeanServer mBeanServer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doAppend(org.ops4j.pax.logging.spi.PaxLoggingEvent paxLoggingEvent)
Called each time a
PaxLoggingEvent is created in the system |
int |
getMaxLogEvents() |
void |
init() |
List<LogEvent> |
retrieveLogEvents()
Retrieves all of the stored
LogEvents |
void |
setMaxLogEvents(int newMaxLogEvents)
Sets the maximum number of
LogEvents to store |
public LoggingService(MBeanServer mBeanServer)
mBeanServer - object used to register this object as an MBeanpublic void destroy()
public void doAppend(org.ops4j.pax.logging.spi.PaxLoggingEvent paxLoggingEvent)
PaxLoggingEvent is created in the systemdoAppend in interface org.ops4j.pax.logging.spi.PaxAppenderpublic List<LogEvent> retrieveLogEvents()
LoggingServiceMBeanLogEventsretrieveLogEvents in interface LoggingServiceMBeanLogEvents in ascending orderpublic void setMaxLogEvents(int newMaxLogEvents)
LogEvents to storenewMaxLogEvents - This number cannot be less than 0 or greater than MAX_LOG_EVENTS_LIMIT. In the event that this parameter is less than 0 or greater than
MAX_LOG_EVENTS_LIMIT, the maximum log events stored will set set to MAX_LOG_EVENTS_LIMIT.public int getMaxLogEvents()
This work is licensed under a Creative Commons Attribution 4.0 International License.