Package ch.qos.logback.core
Class BasicStatusManager
java.lang.Object
ch.qos.logback.core.BasicStatusManager
- All Implemented Interfaces:
StatusManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
protected List<StatusListener>
protected LogbackLock
protected LogbackLock
static int
protected CyclicBuffer<Status>
-
Constructor Summary
Constructors -
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
public static final int MAX_HEADER_COUNT- See Also:
- Constant Field Values
-
TAIL_SIZE
public static final int TAIL_SIZE- See Also:
- Constant Field Values
-
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
public void clear()Description copied from interface:StatusManager
Clear the list of status messages.- Specified by:
clear
in interfaceStatusManager
-
getLevel
public int getLevel() -
getCount
public int 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
-
getCopyOfStatusListenerList
Description copied from interface:StatusManager
Obtain a copy of the status listener list maintained by this StatusManager- Specified by:
getCopyOfStatusListenerList
in interfaceStatusManager
- Returns:
-