Skip to main content

Asynchronous handling of log events

Coroutines provide a simple way to asynchronously handle log events, including dispatching them to different sinks.

Klogging launches new coroutines that are used in a number of places:

  • For dispatching log events to sinks.
  • For receiving log events from event and sink channels.
  • For sending batches of log events to network destinations.

Klogging process diagram

In addition, Klogging uses coroutine channels to process events.