BlueHeron.HCIDump.Logger (blue_heron v0.4.1) View Source
Wrapper around Elixir's Logger to facilitate HCI Logging.
Usage:
iex> require BlueHeron.HCIDump.Logger, as: Logger
BlueHeron.HCIDump.Logger
iex> Logger.debug "hey"
:ok
16:05:03.577 [debug] hey
iex> BlueHeron.HCIDump.decode_file!("/tmp/hcidump.pklg")
[%BlueHeron.HCIDump.PKTLOG{payload: "hey", tv_sec: 1597075503, tv_us: 577, type: :LOG_MESSAGE_PACKET}]
Link to this section Summary
Functions
HCI Packet Logger
type
must be one of
Link to this section Functions
HCI Packet Logger
type
must be one of
:HCI_COMMAND_DATA_PACKET,
:HCI_ACL_DATA_PACKET,
:HCI_SCO_DATA_PACKET,
:HCI_EVENT_PACKET,
:LOG_MESSAGE_PACKET
direction
must be one of
:in,
:out
payload
must be a binary.
metadata
is optional metadata to pass through to Elixir.Logger