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

It has a limited support for logger formatter: you can only use logger_formatter module and template option will be ignored.

It has some basic overload protection, see sync_mode_qlen and drop_mode_qlen options.

Implementation of logger handler callbacks. See examples.

Data Types

opts()

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

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, Conf) -> any()

removing_handler/1

removing_handler(Config) -> any()

start_link/2

start_link(Id, Opts) -> any()


Generated by EDoc