Package com.tccc.kos.core.service.log
Class LogService
java.lang.Object
com.tccc.kos.commons.util.ready.ReadyBean
com.tccc.kos.commons.core.service.AbstractService
com.tccc.kos.core.service.log.LogService
- All Implemented Interfaces:
CtxEventListener,ContextHandleAware,HandleAware,Ready,ReadyAndReadyListener,ReadyListener
Service that abstracts the adding and removing of log level overrides.
Additionally, applies overrides early in the boot cycle enabling proper
log capture at the specified levels from application startup.
- Version:
- 2025-02-13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOverride(LogOverride override) Add a log override.voidremoveOverride(LogOverride override) Remove a log override.Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefixMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompletedMethods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPathMethods inherited from interface com.tccc.kos.commons.util.ready.ReadyAndReadyListener
onBeanReady, onDependenciesReadyMethods inherited from interface com.tccc.kos.commons.util.ready.ReadyListener
onDependenciesGroupReady
-
Constructor Details
-
LogService
public LogService()
-
-
Method Details
-
addOverride
Add a log override. The override may not be in effect by the time this returns as this may need to synchronize with the primary node.- Parameters:
override- the override to apply
-
removeOverride
Remove a log override. The override may not be removed by the time this returns as this may need to synchronize with the primary node.- Parameters:
override- the override to remove
-