• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What does it mean when no catalina log files are being created ?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Good folks

Today I wrote a simple servelet and ran it and I am able to see it working.

But no catalina log files are being created today. Yesterday I have catalina log files at C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs.

Does catalina log files are genearated only when there are issues?

Thank You folks
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jasonsmith nath wrote:Does catalina log files are genearated only when there are issues?


No. It should get generated when Tomcat is running.
 
Rancher
Posts: 1171
18
IntelliJ IDE Hibernate Firefox Browser MySQL Database Spring Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you keep your tomcat running or maded any changes at all?
Cause if you kept it running and there weren't any changes maded, it would make sence that there are no logs, since there's nothing to report
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The catalina.out file is simply the stdout/stderr stream from the Tomcat server app. The standard scripts used to run Tomcat (such as catalina.bat) redirect that stdout to go to TOMCAT_HOME/logs/catalina.out, but non-standard methods of execution may not do so, and instead route it elsewhere, let it default to whatever console Tomcat might have been launched from, or the stdout stream might simply be discarded if it's routed to NULL: or a non-windowed console. This is one of the reasons why webapps should not output to System.out or System.err, since they will go to Tomcat's stdout and stderr streams.

The catalina.out data is quite chatty and starts displaying messages from the moment that Tomcat is first launched, so if you don't see any messages, then consider the reasons I just listed as to possible causes.

In addition to catalina.out, the host subsystem(s) of Tomcat also write logfiles, usually named something like TOMCAT_HOME/logs/xxxxx_localhost.log (or something close enough). These logs sometimes contain critical information when you have a problem but the catalina.out log does not show it. The default location for the host logfiles is part of the Tomcat jvm configuration.

Regular applications are expected to handle their own logging. For example, if a webapp uses log4j, it would typically have a /WEB-INF/classes/log4j.properties or /WEB-INF/classes/log4j.xml config file.
 
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic