java.lang.Object
ch.qos.logback.core.BasicStatusManager
- All Implemented Interfaces:
StatusManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected final List
<StatusListener> protected final LogbackLock
protected final LogbackLock
static final int
protected final CyclicBuffer
<Status> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new status object.boolean
add
(StatusListener listener) This implementation does not allow duplicate installations of OnConsoleStatusListenervoid
clear()
Clear the list of status messages.Obtain a copy of the status list maintained by this StatusManager.Obtain a copy of the status listener list maintained by this StatusManagerint
getCount()
Return the number of status entries.int
getLevel()
void
remove
(StatusListener listener) ); Remove a status listener.
-
Field Details
-
MAX_HEADER_COUNT
- See Also:
-
TAIL_SIZE
- See Also:
-
statusList
-
tailBuffer
-
statusListLock
-
statusListenerList
-
statusListenerListLock
-
-
Constructor Details
-
BasicStatusManager
public BasicStatusManager()
-
-
Method Details
-
add
Add a new status object.- Specified by:
add
in interfaceStatusManager
- Parameters:
newStatus
- the status message to add
-
getCopyOfStatusList
Description copied from interface:StatusManager
Obtain a copy of the status list maintained by this StatusManager.- Specified by:
getCopyOfStatusList
in interfaceStatusManager
- Returns:
-
clear
Description copied from interface:StatusManager
Clear the list of status messages.- Specified by:
clear
in interfaceStatusManager
-
getLevel
-
getCount
Description copied from interface:StatusManager
Return the number of status entries.- Specified by:
getCount
in interfaceStatusManager
- Returns:
-
add
This implementation does not allow duplicate installations of OnConsoleStatusListener- Specified by:
add
in interfaceStatusManager
- Parameters:
listener
-- Returns:
- true if actually added, false if skipped
-
remove
Description copied from interface:StatusManager
); Remove a status listener.- Specified by:
remove
in interfaceStatusManager
- Parameters:
listener
-
-
getCopyOfStatusListenerList
Description copied from interface:StatusManager
Obtain a copy of the status listener list maintained by this StatusManager- Specified by:
getCopyOfStatusListenerList
in interfaceStatusManager
- Returns:
-