Class AgentLogger.LogEntry

java.lang.Object
com.tnsai.quality.observability.AgentLogger.LogEntry
Enclosing class:
AgentLogger

public final class AgentLogger.LogEntry extends Object
Fluent builder for structured log entries.
  • Method Details

    • with

      public AgentLogger.LogEntry with(String key, Object value)
      Adds a context field to the log entry.
      Parameters:
      key - the field key
      value - the field value
      Returns:
      this entry for chaining
    • withAll

      public AgentLogger.LogEntry withAll(Map<String,Object> fields)
      Adds multiple context fields.
      Parameters:
      fields - the fields to add
      Returns:
      this entry for chaining
    • log

      public void log()
      Logs the entry.