Configuring centralized logging from Elixir apps
Papertrail can accept logs from any Elixir app, with or without the
logger_papertrail_backend logging library.
Method A: Use log file
Configure your Elixir app to log to a file as usual, then use
remote_syslog2 to watch that file. Setup instructions.
Method B: Send remote syslog from Elixir app
Alternatively, your app can send a log message directly to Papertrail using the
remote syslog protocol.
To do this, add logger_papertrail_backend to
the app and point it at Papertrail. See
Add Systems for the host and
<port> log destination values.
logger_papertrail_backend is emitting UDP, which is inherently connection-less,
the write calls are non-blocking.