# DebugLogger

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/logging/struct-debuglogger/

**struct** · [`ferroui-splat`](/docs/0.5.0/api/ferroui-splat/) · v0.5.0

```rust
struct DebugLogger
```

A logger that writes to the debug output (`DebugLogger`), the messages of its level and above.

A message with a type is written with the name of the type as its category, as
`Debug.WriteLine(message, category)` writes it: `Category: message`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/debug_logger.rs#L14)

## Members

- [`new`](#function-new)
- [`set_level`](#function-set_level)

<a id="function-new"></a>

### new

```rust
fn new() -> Self
```

A logger at the level `Debug`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/debug_logger.rs#L20)

<a id="function-set_level"></a>

### set_level

```rust
fn set_level(self: &Self, level: LogLevel)
```

Sets the level (`Level { set; }`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/debug_logger.rs#L25)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `Default`
- [`ILogger`](/docs/0.5.0/api/ferroui-headless-vnc/remote_viewing/logging/trait-ilogger/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
