MobDev.Server.LogStreamer (mob_dev v0.5.6)

Copy Markdown View Source

Streams logcat from connected Android devices and iOS simulator console, broadcasting parsed lines via PubSub.

One Port per device. Automatically starts/stops ports as devices connect and disconnect (driven by :devices_updated PubSub events).

Summary

Functions

Returns a specification to start this module under a supervisor.

Parses a logcat brief-format line into a map.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

parse_line(raw, serial)

@spec parse_line(String.t(), String.t()) :: map()

Parses a logcat brief-format line into a map.

Brief format: I/TagName(PID): message

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()