Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Developing in Kotlin
  2. Logging

Kotlin function runtime logging

Written by
Yandex Cloud
Updated at January 29, 2025

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:

  1. println: Outputs a message to the standard output stream, stdout.
  2. 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.

See alsoSee also

  • String formatting in the Kotlin documentation
  • Viewing function logs

Was the article helpful?

Previous
Invocation context
Next
Handling errors
© 2025 Direct Cursus Technology L.L.C.