[reSIProcate] file-based logging max line count
Bayart Frederik
Frederik.Bayart at siemens.com
Fri Jul 30 07:00:21 CDT 2004
Managing the size and the number of the logfiles is easy with the logrotate
tool. I'm using following configuration :
/var/log/resip.log {
copytruncate
size=2000k
rotate 5
nocompress
}
Regards,
Frederik
-----Original Message-----
From: resiprocate-devel-bounces at list.sipfoundry.org
[mailto:resiprocate-devel-bounces at list.sipfoundry.org]On Behalf Of Jason
Fischl
Sent: Saturday, July 17, 2004 11:42 PM
To: Resiprocate
Subject: [reSIProcate] file-based logging max line count
I've added a mechanism into resip file-based Logger to allow a maximum
log-file size. By default, this new feature is turned off. If you want to
turn it on,
GenericLogImpl::MaxLineCount = 5000;
If you set this before you start using the logger, the file will be reset
when 5000 lines have been written. I realize that this isn't ideal, but it
stops the log file from just growing continuously. At some point, it would
be great if somebody could set it up to roll the log files over to a
configurable maximum.
Jason
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel at list.sipfoundry.org
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
More information about the resiprocate-devel
mailing list