Slf4jCacheListener
constructor(logger: Logger = LoggerFactory.getLogger("dev.kmemo.cache"), level: Level = Level.DEBUG, redactPrompts: Boolean = true, maxPromptChars: Int = DEFAULT_MAX_PROMPT_CHARS, correlationId: () -> String? = { null })
Parameters
logger
the SLF4J logger to write to; defaults to one named dev.kmemo.cache.
level
the level every event is logged at.
redactPrompts
whether to withhold prompt text (on by default); false logs it, length-capped.
maxPromptChars
when prompts are not redacted, the longest prefix logged before truncation.
correlationId
supplies a per-event correlation id, or null for none.