4 Replies Latest reply on Sep 29, 2010 12:21 PM by Habib

    Embedded Web Container - Logs

    Habib
      Hi

      I have installed Apex Listener to run Apex 4.01 on Centos 5.5 using:
      java –jar <temp directory>\apex.war
      I want to check the logs files. I would be really thankful if someone please tell me the location where the logs are stored?
        • 1. Re: Embedded Web Container - Logs
          Udo
          Hi Habib,

          I think the Embedded Web Container doesn't write a logfile by default. I don't know if there is any (undocumented) option to change that, but right now I think the console output is all log you'll get. Of course you could use your OS mechanisms to redirect that output into a file.

          -Udo
          • 2. Re: Embedded Web Container - Logs
            Habib
            Thanks Udo

            Can you tell me please how to log console output to a file using OS mechanism?

            Habib
            • 3. Re: Embedded Web Container - Logs
              Udo
              Hello Habib,

              you can redirect the console like that
              java -jar apex.war >>my_apex_listener.log 2>&1
              General information for redirecting output of console commands can be found here:
              http://en.wikipedia.org/wiki/Redirection_%28computing%29
              There is also a special page for Windows systems (based on XP, but should work the same on other MS OSes):
              http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx?mfr=true

              Note that you have to use the console for the first-time use in order to do the initial configuration.
              • 4. Re: Embedded Web Container - Logs
                Habib
                Thanks Udo

                I'll try this.

                Habib