DalaDev.Remote.LogCollector (dala_dev v0.1.2)

Copy Markdown View Source

Remote log collection functions.

These functions automatically use the node selected via DalaDev.Remote.select_node/1.

Summary

Functions

Collects Android logs from a device.

Collects logs from the selected node.

Functions

collect_android_logs(serial, opts \\ [])

@spec collect_android_logs(
  String.t(),
  keyword()
) :: {:ok, String.t()} | {:error, term()}

Collects Android logs from a device.

Returns {:ok, logs} on success, {:error, reason} on failure.

collect_logs(opts \\ [])

@spec collect_logs(keyword()) :: {:ok, [map()]} | {:error, term()}

Collects logs from the selected node.

Returns {:ok, logs} on success, {:error, reason} on failure.