* src/ejabberd_config.erl: Added loglevel option. It is now possible to

configure ejabberd dynamic loglevel from the config file (EJAB-74).

SVN Revision: 693
This commit is contained in:
Mickaël Rémond 2006-12-14 18:54:50 +00:00
parent 2bc550aafc
commit 4f0ee52254
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-12-14 Mickael Remond <mickael.remond@process-one.net>
* src/ejabberd_config.erl: Added loglevel option. It is now possible to
configure ejabberd dynamic loglevel from the config file.
2006-12-08 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_receiver.erl: Bugfix

View File

@ -1,8 +1,9 @@
% $Id$
% ejabberd loglevel (0: no log -> 5: debug))
{loglevel, 4}.
%override_acls.
% Users that have admin access. Add line like one of the following after you
% will be successfully registered on server to get admin access:
%{acl, admin, {user, "aleksey"}}.

View File

@ -121,6 +121,9 @@ process_term(Term, State) ->
add_option(cluster_nodes, Nodes, State);
{domain_balancing, Domain, Balancing} ->
add_option({domain_balancing, Domain}, Balancing, State);
{loglevel, Loglevel} ->
ejabberd_loglevel:set(Loglevel),
State;
{Opt, Val} ->
lists:foldl(fun(Host, S) -> process_host_term(Term, Host, S) end,
State, State#state.hosts)