public class LoggingService extends Object implements org.ops4j.pax.logging.spi.PaxAppender, LoggingServiceMBean
PaxAppender
which receives PaxLoggingEvent
s 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
LogEvent s |
void |
setMaxLogEvents(int newMaxLogEvents)
Sets the maximum number of
LogEvent s 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.PaxAppender
public List<LogEvent> retrieveLogEvents()
LoggingServiceMBean
LogEvent
sretrieveLogEvents
in interface LoggingServiceMBean
LogEvent
s in ascending orderpublic void setMaxLogEvents(int newMaxLogEvents)
LogEvent
s 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.