Here is my logging.properties file -

handlers = 1catalina.org.apache.juli.FileHandler,
2localhost.org.apache.juli.FileHandler,
3manager.org.apache.juli.FileHandler,
4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler,
java.util.logging.ConsoleHandler

1catalina.org.apache.juli.FileHandler.level = FINE

1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE

2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE

3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE

4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE

java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers =
2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
= INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
= 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
= INFO

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers
= 4host-manager.org.apache.juli.FileHandler


On Sun, Feb 9, 2014 at 9:30 PM, Dhaval Jaiswal <dhaval.jais...@via.com>wrote:

> you can check that setting in log4j properties file. INFO will log all the
> information, while Error will log only Errors.
>
> It must by generated by apps only or have you redirected any logs to the
> catalina.out
>
>
>
>
> On Mon, Feb 10, 2014 at 12:19 AM, Pooja Swamy <poojasw...@gmail.com>
> wrote:
>
> > Yes, I have it set to INFO mode, and I can't afford to have ERROR. But
> why
> > are these messages landing in my catalina.out file in the first place?
> >
> >
> > On Sun, Feb 9, 2014 at 9:09 PM, Dhaval Jaiswal <dhaval.jais...@via.com
> > >wrote:
> >
> > > Seems to me you have kept Debug/Info mode on instead of Error.
> > >
> > >
> > >
> > >
> > > On Sun, Feb 9, 2014 at 8:53 PM, Pooja Swamy <poojasw...@gmail.com>
> > wrote:
> > >
> > > > Hi,
> > > >
> > > > I am on a bridge call in the middle of a critical Production issue,
> > and I
> > > > need some urgent help. I am using Tomcat 7.0.x, and my catalina.out
> > file
> > > is
> > > > growing very fast. It is currently at 50 GB. I am frequently rotating
> > the
> > > > file, but no luck. I have referred to multiple posts including the
> > Tomcat
> > > > reference library, and commented the ConsoleHandler from my list of
> > > > handlers. However, there is no difference. Based on my observation,
> the
> > > > file is filling up with INFO messages being written to the file. I
> see
> > > > close to 10-12 such messages getting generated every second. I am not
> > > sure
> > > > where these messages are coming from as I don't have these in my
> > > > application code. So please need your urgent help with the below
> > issues -
> > > >
> > > > 1. What are these various messages written to catalina.out?
> > > > 2. Why are logging messages typically of log4j logging in
> catalina.out?
> > > > 3. What other messages are written to this file?
> > > > 4. How can I prevent the INFO messages from being written to
> catalina?
> > > >
> > > > Thank you for reading my post.
> > > >
> > > > Cheers!
> > > >
> > >
> > >
> > > --
> > > Thanks and Regards,
> > >
> > >
> > >
> > >  Dhaval Jaiswal| Manager Infrastructure
> > >
> >
>
>
>
> --
>
> --
> Thanks and Regards,
>
>
>
>  Dhaval Jaiswal| Manager Infrastructure
>

Reply via email to