facebook

Output Tomcat to File?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #343938 Reply

    amizanj
    Member

    I have an existing Tomcat 6 server running in MyEclipse. Is there a way for me to redirect its output to a file instead of the console within MyEclipse? I tried looking under run configurations but I don’t see anything for Tomcat. I’m using MyEclipse for Spring 10.

    #343957 Reply

    amizanj,

    Yes, you can redirect tomcat output to a file instead of the console. You need to follow these steps to redirect the output to a file :
    1) Configure Tomcat 6 server under Window > Preferences > MyEclipse > Servers > Tomcat > Tomcat 6.x , select ‘Enable’ and click Apply
    2) Click on ‘create launch configuration’ which is under Tomcat 6.x > Launch
    3) Switch to ‘Common’ tab, select ‘File’ option under Standard input and output section and select ‘workspace’ / ‘File system’ to create the file. (Please see the attached screenshot for a visual reference)
    4) After selecting the file, click Apply and then Run.

    Performing the above steps will create a new launch configuration in the server view and running that server will add the output to the file selected in step3.

    You can also use log4J for logging in tomcat. Please take a look at this link which helps you in setting up logging for Tomcat.

    Hope this helps and let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Output Tomcat to File?

You must be logged in to post in the forum log in