25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

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

SVN Revision: 2449
This commit is contained in:
Badlop 2009-08-07 14:56:12 +00:00
parent e0be566491
commit 2e8fe6a1ab

View File

@ -79,6 +79,14 @@ commands() ->
desc = "Reopen the log files", desc = "Reopen the log files",
module = ?MODULE, function = reopen_log, module = ?MODULE, function = reopen_log,
args = [], result = {res, rescode}}, 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], #ejabberd_commands{name = register, tags = [accounts],
desc = "Register a user", desc = "Register a user",