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
,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 TypeMethodDescriptionvoid
addOverride
(LogOverride override) Add a log override.void
removeOverride
(LogOverride override) Remove a log override.Methods inherited from class com.tccc.kos.commons.core.service.AbstractService
getHandle, getHandlePrefix
Methods inherited from class com.tccc.kos.commons.util.ready.ReadyBean
getReady, onBeanReady, onDependenciesReady
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tccc.kos.commons.core.context.CtxEventListener
onCtxAutowiringCompleted, onCtxDestroyed, onCtxPhaseCompleted
Methods inherited from interface com.tccc.kos.commons.core.service.handle.HandleAware
addHandleChild, getName, getPath
Methods 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
-