---
title: "ClikaRT::logging"
sidebar_label: "logging"
description: "Namespace ClikaRT::logging"
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--namespace">namespace</span>

## Classes

| Name | Description |
| --- | --- |
| [`Logger`](./Logger.md) | A handle to a logging channel. Copyable and cheap (shares the channel). All methods take an already-formatted message; use the `CLIKART_LOG_*` macros (or `std::format`) to build it; [`should_log`](./Logger.md#should_log) lets a caller skip formatting work when the level is disabled. |

## Enumerations

### enum LogLevel {#LogLevel}

<div class="api-signature">

`enum class` **`LogLevel`**

</div>

Severity levels, low to high. `Off` disables the channel. Ordered `Trace < Debug < Info < Warn < `[`Error`](../Error.md); a channel emits at or above its threshold.

| Enumerator | Description |
| --- | --- |
| `Trace` |  |
| `Debug` |  |
| `Info` |  |
| `Warn` |  |
| `Error` |  |
| `Off` |  |

<div class="api-declared">

Declared in `ClikaRT/logging/logging.h`, line 41

</div>

## Functions

### logger() {#logger}

<div class="api-signature">

[`Logger`](./Logger.md) **`logger`**()

</div>

The default [ClikaRT](../../index.md) logger (channel "ClikaRT").

<div class="api-declared">

Declared in `ClikaRT/logging/logging.h`, line 50

</div>

### get\_logger() {#get_logger}

<div class="api-signature">

[`Logger`](./Logger.md) **`get_logger`**(`std::string_view` `name`)

</div>

Get or create a named logger channel. An empty name yields the default. The name is copied (it backs the channel + registry key), so a temporary view is fine.

<div class="api-declared">

Declared in `ClikaRT/logging/logging.h`, line 54

</div>
