logger_papertrail_backend v0.1.1 LoggerPapertrailBackend.MessageBuilder

Summary

Functions

Will build a syslog-message, roughly conforming to a BSD syslogmessage, RFC 3164. But it is specially fitted to work with PaperTrail, http://papertrailapp.com

Functions

build(message, level, hostname, timestamp, tag)

Will build a syslog-message, roughly conforming to a BSD syslogmessage, RFC 3164. But it is specially fitted to work with PaperTrail, http://papertrailapp.com

## Example

iex> LoggerPapertrailBackend.MessageBuilder.build("Hello PaperTrail!", :error, "my_system_name", {{2015,10,1}, {12,44,1}}, "Elixir.Hello.World")
"<11>Oct  1 12:44:01 my_system_name Hello.World Hello PaperTrail!"