[Building Sakai] Turn It In has its own log.

Seth Theriault slt at columbia.edu
Tue Feb 12 13:15:39 PST 2013


On Tue, Feb 12, 2013 at 3:51 PM, William Karavites
<willkara at oit.rutgers.edu> wrote:

> https://gist.github.com/anonymous/4773103
>
> Above are the pertinent files (I think) for changing the logs. I tried
> changing the settings in the content-review file but nothing changed. I even
> deleted the contents of the file did nothing so I am guessing that the
> content-review tii implementation doesn't use that one at all.

I am pretty sure that the first log4j.properties file isn't used at all.

Here's my example. Locally, I wanted to separate the logs for the
Sakai search service. To do this, I added these entries in the
main/kernel log4j.properties that I placed in
${CATALINE_HOME}/common/classes (this is 2.8.1 under 5.5.35, bu you
should be able to do it in Tomcat 7 as well for CLE 2.9):

[...]
log4j.appender.sakaisearch=org.apache.log4j.DailyRollingFileAppender
log4j.appender.sakaisearch.DatePattern='.'yyyy-MM-dd
log4j.appender.sakaisearch.File=/var/log/tcat/sakai/sakaisearch.log
log4j.appender.sakaisearch.layout=org.apache.log4j.PatternLayout
log4j.appender.sakaisearch.layout.ConversionPattern=%d %-5p [%t] [%c]: %m%n
log4j.appender.sakaisearch.Encoding=UTF-8

[...]
# Application logging options
log4j.logger.org.sakaiproject=INFO
log4j.logger.org.sakaiproject.search=sakaisearch

You probably want to log org.sakaiproject.content-review (or whatever)
to a separate log.

Seth


More information about the sakai-dev mailing list