# logging

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

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

```rust
module logging
```

Logging (Splat.Logging): the logger interfaces, the loggers Splat ships, the log managers that
hand out a logger per type, [`IEnableLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-ienablelogger/) and [`LogHost`](/docs/0.5.0/api/ferroui-splat/logging/struct-loghost/).
## Types

Upstream passes the `Type` of the class that logs; the port passes the name of the type, as
`std::any::type_name` gives it (`&'static str`). The generic forms (`debug_for::<T>`, ...)
take the type as a type parameter.
## Formatting

The generated overloads of upstream with one to ten arguments (`Debug<TArgument>(string
messageFormat, TArgument argument)`, ...) and the `params object[]` ones are one method each
that takes `std::fmt::Arguments`, made with `format_args!`:

```ignore
logger.debug_args(format_args!("{} of {}", index, count));
```

`format_args!` formats nothing: the arguments are formatted when the logger writes the message,
so a method that checks the level first (the `_args` methods, as the allocation-free overloads
of upstream do) formats only when the level is enabled. The format string is checked at
compile time.
## Exceptions

An exception is a `&dyn std::error::Error`, written with its `Display`.

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

## Contents

- [`ActionLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-actionlogger/) — struct
- [`ConsoleLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-consolelogger/) — struct
- [`DebugLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-debuglogger/) — struct
- [`DefaultLogManager`](/docs/0.5.0/api/ferroui-splat/logging/struct-defaultlogmanager/) — struct
- [`FullLoggerExt`](/docs/0.5.0/api/ferroui-splat/logging/trait-fullloggerext/) — trait
- [`IAllocationFreeErrorLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-iallocationfreeerrorlogger/) — trait
- [`IAllocationFreeLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-iallocationfreelogger/) — trait
- [`IFullLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-ifulllogger/) — trait
- [`IEnableLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-ienablelogger/) — trait
- [`LogHost`](/docs/0.5.0/api/ferroui-splat/logging/struct-loghost/) — struct
- [`LogLevel`](/docs/0.5.0/api/ferroui-splat/logging/enum-loglevel/) — enum
- [`FuncLogManager`](/docs/0.5.0/api/ferroui-splat/logging/struct-funclogmanager/) — struct
- [`ILogManager`](/docs/0.5.0/api/ferroui-splat/logging/trait-ilogmanager/) — trait
- [`LogManagerExt`](/docs/0.5.0/api/ferroui-splat/logging/trait-logmanagerext/) — trait
- [`ILogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-ilogger/) — trait
- [`LoggingError`](/docs/0.5.0/api/ferroui-splat/logging/struct-loggingerror/) — struct
- [`LoggingException`](/docs/0.5.0/api/ferroui-splat/logging/type_alias-loggingexception/) — type alias
- [`AggregateReleaseError`](/docs/0.5.0/api/ferroui-splat/logging/struct-aggregatereleaseerror/) — struct
- [`MemoizingMRUCache`](/docs/0.5.0/api/ferroui-splat/logging/struct-memoizingmrucache/) — struct
- [`SplatLogManagerModule`](/docs/0.5.0/api/ferroui-splat/logging/struct-splatlogmanagermodule/) — struct
- [`SplatLoggerModule`](/docs/0.5.0/api/ferroui-splat/logging/struct-splatloggermodule/) — struct
- [`NullLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-nulllogger/) — struct
- [`IStaticFullLogger`](/docs/0.5.0/api/ferroui-splat/logging/trait-istaticfulllogger/) — trait
- [`StaticFullLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-staticfulllogger/) — struct
- [`StaticFullLoggerExt`](/docs/0.5.0/api/ferroui-splat/logging/trait-staticfullloggerext/) — trait
- [`short_type_name`](/docs/0.5.0/api/ferroui-splat/logging/function-short_type_name/) — function
- [`WrappingFullLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-wrappingfulllogger/) — struct
- [`WrappingLogLevelLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-wrappingloglevellogger/) — struct
- [`WrappingPrefixLogger`](/docs/0.5.0/api/ferroui-splat/logging/struct-wrappingprefixlogger/) — struct

## Availability

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