[JDEV] patch: jabberd-1.4 logfile rotation
Martin Lesser
jabber-adm at better-com.de
Thu Oct 3 00:23:03 CDT 2002
Chris Wilkes <cwilkes-jabber at ladro.com> writes:
> Speaking of log files, is there a way to up the logging level of
> jabberd? Right now I just have logins and outs in my jabber.record file
> and would like to have something on the order of "user1 sent message to
> user2"
As you mentioned below: You have to run jabberd with the -D option. Then
you can use the filter options of multilog to get only specific entries
of the debugged output. For example I run jabberd here and maintain
several types of logfiles by filtering the lines for several
purposes. I.e one line of the multilog-run filter states:
'+* * * * * *usercount*' $LOGDIR/usercount
So in $LOGDIR/usercount/current I get a simple stat about the usage of
my jabberd containing one line for every minute.
> If jabber's logging is like Apache's you might have to do some tricks
> with getting it to work with multilog by creating a named pipe. See
> this page on how to do that http://www.lightwerk.com/zope/logging
Yes, multilog needs a pipe where it gets the output of the supervised
daemon so you have to ensure that the supervised process and its output
won't go to background but in case of jabberd this is done by the -D
option automaticly. Output of stderr should be forwarded to stdout
additionally.
Martin
More information about the JDev
mailing list