[Building Sakai] Awesome log file

Matthew Jones jonespm at umich.edu
Thu Oct 22 09:32:44 PDT 2009


Hi Jon,

By default, sakai doesn't roll the log files daily. You can pretty easily
change the configuration though to do whatever you want. For the quick
rundown look at this SAK:
http://jira.sakaiproject.org/browse/SAK-16426

I'm mostly using the properties file that I have attached. It writes the log
to /var/log/sakai/${serverId}.log and rolls them daily. serverId is passed
as a -D startup parameter to tomcat, so something like:

JAVA_OPTS="$JAVA_OPTS -DserverId=${HOSTNAME}"

But you can just hardcode it if you want to whatever filename. You can
probably also use ${catalina.home}/logs instead of /var/log/sakai.

Just put that file in ${catalina.home}/common/classes/log4j.properties and
it will perform more customized logging. I'll update the confluence
documentation shortly concerning sakai logging with this information. You
can even use other appenders or write and use your own.

(That page is here)
http://confluence.sakaiproject.org/display/DOC/Sakai+Logging+%282.6%29

-Matthew

On Thu, Oct 22, 2009 at 9:12 AM, Jon Wheat <JWheat at messiah.edu> wrote:

>  I was looking over my system and saw my catalina.out file is 11123384870
> bytes (11G !!!!)
> I'm thinking something's mis-configured eh ? <G>
>
> I see in my tomcat/logs directory I have a host of 0 byte files with the
> names like - catalina.2009-10-22
>
> So the log rotator looks to be creating the daily file itself, but it isn't
> rotating the catalina.out file.
> Everything in there is owned by root if that makes a difference.
>
> Is this a permissions thing or a log4j.properties setting somewhere ?
> (Sakai 2.5.x on Linux)
>
> Thanks for any pointers.
>
> -Jon
>
>
> _______________________________________________
> 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/20091022/fcc24eaf/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log4j.properties
Type: application/octet-stream
Size: 699 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091022/fcc24eaf/attachment.obj 


More information about the sakai-dev mailing list