Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where are output messages written to?  RSS feed

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet which I developed on my PC, and have now uploaded to someone's server (using Tomcat).

Can anyone tell me where abouts on his server I can find the output from such code as:

ogetServletContext().log("Error occured");
oSystem.err.println("Error occured");
oe.printStackTrace();

Many thanks,
James
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is server dependenet, but if using Tomcat, you can check: Tomcat directory/logs/
 
Gert Cuppens
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes it can also depend on the IDE you're using.
I've tried several IDE's, like JCReator, Gel and Eclipse.
Eclipse was the only development environment which had a console. The output of every system.out.println (and sort like commands)was shown in the console. Very handy !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!