[Anthill-pro] AHP Server Log

Ryan Smith rws at urbancode.com
Wed Jan 2 13:16:27 CST 2008


Matthew,

Yes, you can get this to rotate. The ah3server.sh file is redirecting standard output to that file. The volume of that file can be directly associated with your logging level in the System Settings. DEBUG produces a lot of logs and should only be used when trying to trouble-shoot a problem. We recommend WARN.

In order to get logs to rotate, you will need to change your conf/server/log4j.properties file. You will notice a section in there that is:

# file appender
log4j.appender.file=org.apache.log4j.RollingFileAppender


This is a configuration for a rolling file. It produces a log.txt file in the bin directory and rolls it every 1 MB. We can configure it to roll on size or roll by day if needed.

To switch to the rolling file, change the line:

log4j.rootLogger=WARN, stdout, multi

to be

log4j.rootLogger=WARN, file, multi

That will stop logging to the ah3server.out and start using the rolling file. The changes should take place in less thn a minute and do not require a restart. The old file should be able to be moved and compressed or deleted as you see fit.


Let us know if you want a specific rolling configuration.



Ryan Smith


Mathew Joseph wrote:
> Hi there,
>  Is there any way to have a log rotation scheme for ah3server.out ? This
> file seems to have grown to humongous proportions on our server. 

-- 
===========================================================
Ryan Smith.           		2044 Euclid Ave., Suite 600
Lead Developer                  Cleveland, Ohio 44115
Urbancode, Inc.
                                email:  rws at urbancode.com
web:     www.urbancode.com      phone:  216-858-9000
web:     www.anthillpro.com     fax:    216-858-9602
===========================================================


More information about the Anthill-pro mailing list