# ILogger

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/logging/trait-ilogger/

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

```rust
trait ILogger
```

A logger: writes messages of a level (`ILogger`).

A message written with a type names the type that wrote it, by its name
(`std::any::type_name`).

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

## Members

- [`level`](#function-level)
- [`write`](#function-write)
- [`write_exception`](#function-write_exception)
- [`write_with_type`](#function-write_with_type)
- [`write_exception_with_type`](#function-write_exception_with_type)

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

### level

```rust
fn level(self: &Self) -> LogLevel
```

The level from which the logger writes (`Level`).

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

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

### write

```rust
fn write(self: &Self, message: &str, log_level: LogLevel)
```

Writes `message` (`Write(string, LogLevel)`).

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

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

### write_exception

```rust
fn write_exception(self: &Self, exception: &dyn Error, message: &str, log_level: LogLevel)
```

Writes `message` with `exception` (`Write(Exception, string, LogLevel)`).

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

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

### write_with_type

```rust
fn write_with_type(self: &Self, message: &str, type_name: &'static str, log_level: LogLevel)
```

Writes `message` of the type `type_name` (`Write(string, Type, LogLevel)`).

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

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

### write_exception_with_type

```rust
fn write_exception_with_type(self: &Self, exception: &dyn Error, message: &str, type_name: &'static str, log_level: LogLevel)
```

Writes `message` with `exception`, of the type `type_name`
(`Write(Exception, string, Type, LogLevel)`).

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

## Trait implementations

- [`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/).
