Module logjam_formatter

This is the main module that exposes custom formatting to the OTP logger library (part of the kernel application since OTP-21).

Description

This is the main module that exposes custom formatting to the OTP logger library (part of the kernel application since OTP-21).

The module honors the standard configuration of the kernel's default logger formatter regarding: max depth, templates.

Data Types

metakey()

metakey() = atom() | [atom()]

template()

template() = [metakey() | {metakey(), template(), template()} | string()]

Function Index

apply_defaults/1
format_log/4
format_msg/2
format_to_binary/2
string_to_binary/1
to_string/2

Function Details

apply_defaults/1

apply_defaults(UserConfig) -> any()

format_log/4

format_log(Tpl::template(), Config, Msg, Meta) -> unicode:chardata()

format_msg/2

format_msg(Data, Config) -> any()

format_to_binary/2

format_to_binary(Format, Terms) -> any()

string_to_binary/1

string_to_binary(String) -> any()

to_string/2

to_string(X, C) -> any()


Generated by EDoc