MobAudioIo.Log (mob_audio_io v0.1.0)

Copy Markdown View Source

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.

Summary

Functions

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

Returns a specification to start this module under a supervisor.

Functions

attach()

@spec attach() :: :ok

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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.