dynamically changing loglevel

It appears that dynamically changing the loglevel is explicitly supported, but it doesn't seem to be working. I'm doing:

  % erl -sname node1 -remsh ejabberd@localhost
  Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]

  Eshell V5.6.4  (abort with ^G)
  (ejabberd@localhost)1> ejabberd_loglevel:set(3).
  {module,ejabberd_logger}
  (ejabberd@localhost)2>
  BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
         (v)ersion (k)ill (D)b-tables (d)istribution
  %

(hitting ^c^c to end the session) But even after several hours the log has no new INFO messages. Am I making a mistake? Thanks.

INFO is printed with loglevel 4 or 5.

jtschaff wrote:

But even after several hours the log has no new INFO messages. Am I making a mistake? Thanks.

It works for me, just try to increase the loglevel. INFO is returned in 4 or higher. See the configuration file:

%% loglevel: Verbosity of log files generated by ejabberd.
%% 0: No ejabberd log at all (not recommended)
%% 1: Critical
%% 2: Error
%% 3: Warning
%% 4: Info
%% 5: Debug
%%
{loglevel, 4}.
Syndicate content