# `MobAudioIo.Log`
[🔗](https://github.com/GenericJam/mob_audio_io/blob/main/lib/mob_audio_io/log.ex#L1)

Logs what the native side reports, with a `[mob_audio_io]` prefix.

Native code can't reach Logger (and so not Sloppy Joe's `logs`), so the
NIF sends this process a copy of every stream message but `:post`, and
of every decode message but the `:decoded` chunks. Started, unsupervised
and unlinked, by the first `MobAudioIo.Native.open/3` or
`decode_stream/3`; it lives for the app's life.

# `attach`

```elixir
@spec attach() :: :ok
```

Start the logger if needed and point the NIF at it.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
