Edao Aliye wrote:
> Hi Richared,
>
> The problem I have ist not "localhost_log"
> That works pretty good. Hier ist my configuration:
>
> ++++++++++++++++++++++
> more log4j.properties
> log4j.rootLogger=info, R
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=${CATALINA_HOME}/logs/tomcat.log
> log4j.appender.R.MaxFileSize=2MB
> log4j.appender.R.MaxBackupIndex=50
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
>
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhos
t]=INFO,
> R ++++++++++++++++++++++
>
> My Problem is the file catalina.out which is defined in catalina.sh.
>
> Any idea?
>
> Thnak you very MUCH.

Sorry, I had just done the log4j and was trying to find a question to
match my answer/hammer.

What I did notice is that when I put in the log4j logging, a lot of my
catalina.out output is now going to tomcat.log, which is size
controlled. Did you see the same?

Also, IIRC my application "log.debug", "log.warn", "log.info" statements
are directed to catalina.out using a separate log4j.properties in my
application's WEB-INF/classes directory. You can use this to cut down on
the volume of your catalinat.out probably.

Otherwise, I cannot think of a good solution to just truncate the
catalina.out. Depending on the OS you are running under you might be
able to try and rename/truncate he file periodically, but that is not
very clean.

 - Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to