]> granicus.if.org Git - ejabberd/commit
Replace lager with built-in new logging API
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 18 Oct 2019 16:12:32 +0000 (19:12 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Fri, 18 Oct 2019 16:12:32 +0000 (19:12 +0300)
commite4a8afb15d6c995b294a60ed150b86775e2f6805
treef1a739fe3737fce2cf0ea79740c9ebee92290287
parentb1d458999a28d8c295b6621a1c2937de8fa83ff2
Replace lager with built-in new logging API

This change requires Erlang/OTP-21.0 or higher.
The commit also deprecates the following options:
  - log_rotate_date
  - log_rate_limit

Furthermore, these options have no effect. The logger now fully
relies on log_rotate_size, that cannot be 0 anymore.

The loglevel option now accepts levels in literal formats.
Those are: none, emergency, alert, critical, error, warning, notice, info, debug.
Old integer values (0-5) are still supported and automatically converted
into literal format.
18 files changed:
.travis.yml
README.md
configure.ac
ejabberd.yml.example
include/logger.hrl
rebar.config
src/ejabberd.app.src.in
src/ejabberd.erl
src/ejabberd_admin.erl
src/ejabberd_app.erl
src/ejabberd_config.erl
src/ejabberd_config_transformer.erl
src/ejabberd_ctl.erl
src/ejabberd_logger.erl
src/ejabberd_option.erl
src/ejabberd_options.erl
src/ejabberd_system_monitor.erl
src/mod_pubsub.erl