← ClaudeAtlas

kora-aop-logginglisted

Declarative method logging in Kora — @Log (+ @Log.in/out/result/off) and @Mdc via logging-common. Use when adding entry/exit logging, MDC context keys, or hiding sensitive arguments.
kora-projects/kora-skills · ★ 1 · DevOps & Infrastructure · score 72
Install: claude install-skill kora-projects/kora-skills
# Kora AOP Logging — `@Log` and `@Mdc` > **Kora sub-skill — obey the [kora-v1 meta rules](../../SKILL.md) on every task:** **R0** ensure `.kora-agent/` docs+examples are cloned · **R1** read this sub-skill before writing code · **R2** Kora APIs only — no Spring/Micronaut/Quarkus, no invented annotations or config keys · **R3** journal any incorrect Kora usage. Add comments/Javadoc only if asked. Declarative, compile-time method logging. The annotation processor generates a `*Aspect` class around your method; there is no reflection or runtime proxy. The aspect writes through SLF4J, so your Logback configuration controls the final format. Use this skill when you need to: - log method entry/exit with arguments and return value (`@Log`), - enrich every log line of a call with contextual keys (`@Mdc`), - suppress credentials or large payloads from log output (`@Log.off`), - wire `LoggingModule` into a `@KoraApp`. ## Quick Start ### 1. Dependencies `logging-common` is usually pulled transitively by a logging backend (`logging-logback`). Add it explicitly only if it is missing. All Kora artifacts inherit their version from the `kora-parent` BOM — never pin an individual `ru.tinkoff.kora:*` version. ```groovy dependencies { koraBom platform("ru.tinkoff.kora:kora-parent:1.2.19") // Mandatory: without the annotation processor no aspect is generated annotationProcessor "ru.tinkoff.kora:annotation-processors" implementation "ru.tinkoff.kora:logging-logback" // pu