# WrappingPrefixLogger

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

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

```rust
struct WrappingPrefixLogger
```

A logger that writes each message with the name of a type in front, `Type: message`
(`WrappingPrefixLogger`): the calling type of the logger, or the type a message is written
with.

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

## Members

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

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

### new

```rust
fn new(inner: Rc<dyn ILogger>, calling_type: &'static str) -> Self
```

A logger over `inner` for the type `calling_type` (`WrappingPrefixLogger(ILogger, Type)`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`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/).
