[Building Sakai] about storing tomcat verbos log

Matthew Jones jonespm at umich.edu
Mon Oct 31 14:23:30 PDT 2011


You can configure log4j to use the DailyRollingFileAppender. I know this is
somewhere in the release docs [1] and also in the Sakai Book. [2]

For windows this new configuration goes in the same place:
"common/classes/log4j.properties"

[1] https://jira.sakaiproject.org/browse/SAK-16426
[2]
http://my.safaribooksonline.com/book/databases/content-management-systems/9781847199409/common-error-messages/ch13lvl1sec03

On Mon, Oct 31, 2011 at 5:03 PM, Earle Nietzel <earle.nietzel at gmail.com>wrote:

> Hi Khan,
>
> Good question, most nix platforms have some type of logrotate so its
> really a given there but on Windows?
>
> You could try something like:
>
> copy $TOMCAT_HOME\logs\catalina.out c:\mybackuplogs\catalina.out
> echo . > $TOMCAT_HOME\logs\catalina.out
>
> You could probably come up with something better by putting the date on
> the end of the copied log and then use at to schedule it.
>
> Anyways I am sure you can google for something.
>
> Earle
>
> On Wed, Oct 26, 2011 at 6:58 AM, Khan <vupk at yahoo.com> wrote:
>
>> Dear All
>>
>> Our sakai installation is
>>
>> OS=Windows 2003 Server
>> Sakai = 2.7.1
>> Database = Oracle 10g
>>
>> I am storing tomcat verbose log in a text file using command "catalina
>> run>log.txt"
>>
>> the problem is file size growing very large, and I dont like to restart
>> sakai instance.
>>
>> Is there any way so that if a file size exeed than a specified size then
>> log should be written to another file.
>>
>> Regards
>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20111031/2751be48/attachment.html 


More information about the sakai-dev mailing list