How can I prevent Koog from outputting debug loggi...
# koog-agentic-framework
d
How can I prevent Koog from outputting debug logging? e.g:
Copy code
2025-08-13 23:12:39.395 [main] DEBUG ai.koog.prompt.structure.Extensions - Execute the prompt: ... <Dozens of lines of output>
...I kinda need to see my own Apps output and this is creating too much noise 🙂 Can't see any obvious options for it, suggest the default from Koog should be 'silent'?
d
Just put an Slf4j logger (like slf4j-simple, slf4-nop if you want to fully mute it) in your dependencies and set the appropriate log-level rules. At least, that's what I did and it worked! 😆
👌 1
Koog is using KotlinLogging. So on other platforms than JVM, you'll have to read the KotlinLogging docs.
d
Thanks for the pointer @Didier Villevalois 👍
thank you color 1
a
Basically what Didier said, just to give you a bit more details. In Koog on JVM (in tests and
examples
module) we use logback (my personal preference, but other logging libs should work just fine as well) and then configure it to get desired level per logger. You only need to add it to your dependencies, and then configure it via
logback.xml
in your
resources
💡 1
blob ty sign 1