---
title: "LogCallback"
sidebar_label: "LogCallback"
description: "Kotlin binding reference: LogCallback."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[LogCallback](index.md)

# LogCallback

[common]\
fun interface [LogCallback](index.md)

A callback carrying one runtime log record: its [LogLevel](../LogLevel/index.md) and the formatted line (no trailing newline). Registered through [ClikaRtLog.setCallback](../ClikaRtLog/setCallback.md); fires on whichever thread logged, so keep the body short and never log back into the runtime from it.

## Functions

| Name | Summary |
|---|---|
| [run](run.md) | [common]<br>abstract fun [run](run.md)(level: [LogLevel](../LogLevel/index.md), line: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)) |