# LoggerMotionExtensions

Send tween values to Unity's ILogger, optionally with a format string.

Namespace: MeatMotion.Extensions

Assembly: MeatMotion

```csharp
public static class LoggerMotionExtensions
```

[Runtime/Bindings/ReportingMotionExtensions.cs · L30](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L30)

## BindToUnityLogger

Log each sample using the supplied logger, or Debug.unityLogger if none is supplied.

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L32](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L32)

```csharp
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L35](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L35)

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, string format)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- `format` (`string`) Format string for converting the sampled value to text.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L41](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L41)

```csharp
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, string format)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `format` (`string`) Format string for converting the sampled value to text.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L44](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L44)

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- `logger` (`ILogger`) Target ILogger that receives the update.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L50](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L50)

```csharp
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, ILogger logger)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `logger` (`ILogger`) Target ILogger that receives the update.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L53](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L53)

```csharp
public static MotionHandle BindToUnityLogger(this FloatMotionBuilder builder, ILogger logger, string format)
```

Parameters and return value

- `builder` (`this FloatMotionBuilder`) Configured builder, passed as the receiver for extension calls.
- `logger` (`ILogger`) Target ILogger that receives the update.
- `format` (`string`) Format string for converting the sampled value to text.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L59](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L59)

```csharp
public static MotionHandle BindToUnityLogger<TValue, TOptions, TAdapter>(this MotionBuilder<TValue, TOptions, TAdapter> builder, ILogger logger, string format)
    where TValue : unmanaged
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<TValue, TOptions>
```

Parameters and return value

- `builder` (`this MotionBuilder<TValue, TOptions, TAdapter>`) Configured builder, passed as the receiver for extension calls.
- `logger` (`ILogger`) Target ILogger that receives the update.
- `format` (`string`) Format string for converting the sampled value to text.
- Returns: `MotionHandle`

[Runtime/Bindings/ReportingMotionExtensions.cs · L62](../../../source/Runtime/Bindings/ReportingMotionExtensions.cs.html#L62)
