Package com.agentforge4j.starter.logging
Class RunMdcContext
java.lang.Object
com.agentforge4j.starter.logging.RunMdcContext
- All Implemented Interfaces:
AutoCloseable
Stacks run, workflow, step, and agent identifiers into
MDC; close()
restores values that were present beforehand.
Keys correspond to fixed field names consumed by downstream logging pipelines.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Restores earlierMDCvalues captured on first write of each key during this context.static RunMdcContextPuts identifiers intoMDC, replacing blank strings with removals for the affected key.
-
Method Details
-
of
Puts identifiers intoMDC, replacing blank strings with removals for the affected key. -
close
public void close()Restores earlierMDCvalues captured on first write of each key during this context.- Specified by:
closein interfaceAutoCloseable
-