• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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.
 
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic