# DefaultLogManager

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

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

```rust
struct DefaultLogManager
```

The log manager Splat registers (`DefaultLogManager`): the logger of a type is the `dyn ILogger`
of the resolver, with the name of the type in front of its messages, wrapped in a full logger.
The last 64 loggers are cached.

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

## Members

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

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

### new

```rust
fn new(dependency_resolver: Rc<dyn IReadonlyDependencyResolver>) -> Self
```

A log manager over the loggers of `dependency_resolver`.

Getting a logger panics with a `LoggingError` when the resolver has no `dyn ILogger`.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`LogManagerExt`](/docs/0.5.0/api/ferroui-splat/logging/trait-logmanagerext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ILogManager`](/docs/0.5.0/api/ferroui-splat/logging/trait-ilogmanager/)

## Availability

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