ex_loglite v0.1.1 ExLogLite.LogModel

Build log messages according to LogLite format, in binary.

Summary

Functions

Build binary in the same format as char array in C from a string. Trim str if exceeds max_len, pad 0 if not long enough. Count in byte_size

Build a LogLite style message, return an iolist same as C structure

Functions

build_binary_chars(str, max_len)

Build binary in the same format as char array in C from a string. Trim str if exceeds max_len, pad 0 if not long enough. Count in byte_size

build_message(typ, msg)

Build a LogLite style message, return an iolist same as C structure.