%%-----------------------------
start() ->
- logger:set_primary_config(level, none),
+ disable_logging(),
[SNode, Timeout, Args] = case init:get_plain_arguments() of
[SNode2, "--no-timeout" | Args2] ->
[SNode2, infinity, Args2];
print(Format, Args) ->
io:format(lists:flatten(Format), Args).
+-ifdef(LAGER).
+disable_logging() ->
+ ok.
+-else.
+disable_logging() ->
+ logger:set_primary_config(level, none).
+-endif.
+
%%-----------------------------
%% Command management
%%-----------------------------
or (L == critical) or (L == error) or (L == warning)
or (L == notice) or (L == info) or (L == debug))).
+-export_type([loglevel/0]).
+
-spec restart() -> ok.
-spec reopen_log() -> ok.
-spec rotate_log() -> ok.
log_rotate_size() ->
ejabberd_config:get_option({log_rotate_size, global}).
--spec loglevel() -> 'none' | logger:level().
+-spec loglevel() -> ejabberd_logger:loglevel().
loglevel() ->
ejabberd_config:get_option({loglevel, global}).
{websocket_origin, [binary()]} |
{disable_sasl_mechanisms, [binary()]} |
{s2s_zlib, boolean()} |
- {loglevel, none | logger:level()} |
+ {loglevel, ejabberd_logger:loglevel()} |
{listen, [ejabberd_listener:listener()]} |
{modules, [{module(), gen_mod:opts(), integer()}]} |
{ldap_uids, [{binary(), binary()}]} |