# IEnableLogger

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

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

```rust
trait IEnableLogger
```

A type that logs through the logger of its type (`IEnableLogger`).

`this.Log()` of upstream is the provided `log`.

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

## Members

- [`log`](#function-log)

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

### log

```rust
fn log(self: &Self) -> Rc<dyn IFullLogger>
```

The logger of the type, from the `dyn ILogManager` of the current resolver of
`AppLocator` (`LogHostExtensions.Log`).

Panics when the current resolver has no log manager (`InvalidOperationException`).

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

## Trait implementations

- [`IEnableLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-ienablelogger/)

## Availability

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