Package com.tnsai.quality.observability
Class AgentLogger.LogEntry
java.lang.Object
com.tnsai.quality.observability.AgentLogger.LogEntry
- Enclosing class:
AgentLogger
Fluent builder for structured log entries.
-
Method Summary
Modifier and TypeMethodDescriptionvoidlog()Logs the entry.Adds a context field to the log entry.Adds multiple context fields.
-
Method Details
-
with
Adds a context field to the log entry.- Parameters:
key- the field keyvalue- the field value- Returns:
- this entry for chaining
-
withAll
Adds multiple context fields.- Parameters:
fields- the fields to add- Returns:
- this entry for chaining
-
log
public void log()Logs the entry.
-