25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Add ejabberd command to get the current loglevel (EJAB-1004)

SVN Revision: 2447
This commit is contained in:
Badlop 2009-08-07 14:51:55 +00:00
parent 0e8dd70ed5
commit 5490d7efe8

View File

@ -79,6 +79,14 @@ commands() ->
desc = "Reopen the log files",
module = ?MODULE, function = reopen_log,
args = [], result = {res, rescode}},
#ejabberd_commands{name = get_loglevel, tags = [logs, server],
desc = "Get the current loglevel",
module = ejabberd_loglevel, function = get,
args = [],
result = {leveltuple, {tuple, [{levelnumber, integer},
{levelatom, atom},
{leveldesc, string}
]}}},
#ejabberd_commands{name = register, tags = [accounts],
desc = "Register a user",