java.lang.Object
ch.qos.logback.core.BasicStatusManager
- All Implemented Interfaces:
StatusManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected final List<StatusListener> protected final LogbackLockprotected final LogbackLockstatic final intprotected final CyclicBuffer<Status> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new status object.booleanadd(StatusListener listener) This implementation does not allow duplicate installations of OnConsoleStatusListenervoidclear()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 StatusManagerintgetCount()Return the number of status entries.intgetLevel()voidremove(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:
addin interfaceStatusManager- Parameters:
newStatus- the status message to add
-
getCopyOfStatusList
Description copied from interface:StatusManagerObtain a copy of the status list maintained by this StatusManager.- Specified by:
getCopyOfStatusListin interfaceStatusManager- Returns:
-
clear
Description copied from interface:StatusManagerClear the list of status messages.- Specified by:
clearin interfaceStatusManager
-
getLevel
-
getCount
Description copied from interface:StatusManagerReturn the number of status entries.- Specified by:
getCountin interfaceStatusManager- Returns:
-
add
This implementation does not allow duplicate installations of OnConsoleStatusListener- Specified by:
addin interfaceStatusManager- Parameters:
listener-- Returns:
- true if actually added, false if skipped
-
remove
Description copied from interface:StatusManager); Remove a status listener.- Specified by:
removein interfaceStatusManager- Parameters:
listener-
-
getCopyOfStatusListenerList
Description copied from interface:StatusManagerObtain a copy of the status listener list maintained by this StatusManager- Specified by:
getCopyOfStatusListenerListin interfaceStatusManager- Returns:
-