Module logger_journald_h

OTP logger handler that sends logs to journald.

Behaviours: gen_server.

Authors: Sergey Prokhorov (me@seriyps.ru).

Description

OTP logger handler that sends logs to journald

This handler does not provide any overload protection (yet). OTP's built-in logger_olp is not documented (and not really reusable), so we can't use it here.

Implementation of logger handler callbacks. See examples.

Data Types

opts()

opts() = #{socket_path => file:filename_all(), defaults => #{journald_sock:key() => journald_sock:value()}}

Function Index

adding_handler/1
changing_config/3
filter_config/1
log/2
removing_handler/1
start_link/2

Function Details

adding_handler/1

adding_handler(Config) -> any()

changing_config/3

changing_config(SetOrUpdate, OldConfig, NewConfig) -> any()

filter_config/1

filter_config(Config) -> any()

log/2

log(LogEvent, X2) -> any()

removing_handler/1

removing_handler(X1) -> any()

start_link/2

start_link(Id, Opts) -> any()


Generated by EDoc