I've deleted any reference in logging.properties to the console. However
the file rm'd catalina.out file still coming back on restarts. Any ideas?
catalina,out is now also reporting "java.util.logging.ErrorManager: 4:
Unable to create [logs]"
Below is my altered 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
.handlers = 1catalina.org.apache.juli.FileHandler
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
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.
############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################
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
# For example, set the org.apache.catalina.util.LifecycleBase logger to log
# each component that extends LifecycleBase changing state:
#org.apache.catalina.util.LifecycleBase.level = FINE
# To see debug messages in TldLocationsCache, uncomment the following line:
#org.apache.jasper.compiler.TldLocationsCache.level = FINE
# For memcached session manager
de.javakaffee.web.msm.level = WARNING
On Thu, Aug 22, 2013 at 11:52 AM, Konstantin Kolinko <[email protected]
> wrote:
> 2013/8/22 Tomcat Random <[email protected]>:
> > My development setup is Win7 while my production is RHEL6. Both of the
> > environments have the same settings in conf/logging.properties but the
> > files in logs/ are slightly different.
> >
> > The access logs are named the same way. but on RHEL there's no
> > tomcat7-stdout or tomcat7-stderr log files. Just
> 'catalina.out.YEAR.MO.DY'
> > and the cumulative "catalina.out" with no date.
> >
> > What accounts for the differences?
> >
>
> catalina.sh redirects stderr to stdout with 2>&1 and logs them to the same
> file
>
> Windows service wrapper (Apache Commons Daemon procrun) logs them to
> separate files.
>
> > Also, how would you stop logging to the 'catalina.out' file. It gets
> > unusably gigantic within a few days.
> >
>
> Just do not write to the console.
>
>
> http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Considerations_for_productive_usage
>
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>