Luger v1.0.1 Luger.Message

This module contains functions to create an format log messages using Luger.

This is separated out as it makes testing your logging easier as you can use the split/1 function to convert your log into a struct.

Summary

Functions

Creates a Message struct from a connection and duration

Joins a Message struct into a binary log message

Splits a log message back into a Message struct

Types

t()
t

Functions

create(conn, duration, luger)
create(Conn.t, integer, Luger.t) :: Message.t

Creates a Message struct from a connection and duration.

join(msg)
join(Message.t) :: binary

Joins a Message struct into a binary log message.

split(message)
split(binary) :: Message.t

Splits a log message back into a Message struct.