How can I turn the logging for embedded Ktor Serve...
# ktor
s
How can I turn the logging for embedded Ktor Server in
commonMain
off? At start it logs this:
Copy code
[INFO] (io.ktor.server.Application): Application started in 0.0 seconds.
[INFO] (io.ktor.server.Application): Responding at <http://127.0.0.1:49991>
Even the macOS / mingW binaries log this at start. I want it to be completely silent. I think it comes from here: https://github.com/ktorio/ktor/blob/b7face18342805d8a0eb77bb711d72aea5cd49a3/ktor-[…]-core/common/src/io/ktor/server/engine/BaseApplicationEngine.kt
a
You can change the logging level for the Ktor native server with the
KTOR_LOG_LEVEL
environment variable. For example,
KTOR_LOG_LEVEL=WARN
.
thank you color 1