• 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

Log trace missing in catalina.out

 
Ranch Hand
Posts: 41
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Javaranch,

I am facing a problem tracing the transaction cycle in catalina.out file in my tomcat server.I am using prinln statements in my application to trace the application execution cycle.

Now the case is i got some problem finding data in database whichshould be inserted while my application execution.
So, i thought of tracing my catalina.out file for tracing out whether any exception occured or not.

And i got shocked seeing that catalina .out where some of my application trace is missing even if complete cycle executed successfully without any exceptions.

My question is "Can tomcat ignore some of the print statements for not writing into catalina.out.?"

How is it possible that i cant trace anything in catalina.out while the application executed successfully?

Please help me on this issue...!

Thanks in Advance...!
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My first rule of debugging is don't assume it's the other guy's fault. That is, assume the bug is in your code and not Tomcat. Can you please post an example log file and point out where you expect the missing statements to be? Also post the code that issues the missing statements.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be using a normal logging solution rather than relying on System.out.
 
reply
    Bookmark Topic Watch Topic
  • New Topic