Logging Kotlin function runtime
Written by
Updated at August 22, 2024
Cloud Functions automatically captures an application's standard output streams and sends them to the centralized logging system in Yandex Cloud. Along with application runtime logging, the system logs request execution events.
Additional messages are logged using standard language constructs:
println
: Outputs a message to the standard output stream,stdout
.System.err.println
: Outputs a message to the standard error stream,stderr
.
Note
Multiline messages must be separated by \r
(carriage return) and not by \n
(line feed). When using a line feed, each line is sent as a separate message and displayed separately in the log.