3 Replies Latest reply on Apr 17, 2007 1:01 AM by genman

    viewing logs in web-console?

    bezdomny

      Is it possible to view stderr and stdout using the Web-console? I've looked through the mgt interface and couldn't find anything promising. Is there a logging mbean I don't know about? Any suggestions would be great. I really need to have this functionality because of the hoops our ops folks make us go through to request the logs. Thanks!

        • 1. Re: viewing logs in web-console?
          peterj

          Everything that shows up on the console is placed there by Log4J. You could change the log4j.xml file to log that information to a file instead (or in addition to), and then display that log file. Of course, the web-console would not be able to display the log without modification.

          • 2. Re: viewing logs in web-console?
            bezdomny

            Thanks Peter. My log4j setup has the stderr and stdout going to /server/default/logs/server.log, so I have a physical file to catch the logs I was just hoping I missed something in web-console that would give me access to this file directly. I might look into writing an MBean to do this. Any advice on mbean creation would be appreciated.

            Thanks.

            B

            • 3. Re: viewing logs in web-console?
              genman

              Probably you don't need an MBean here. I would simply have a servlet pipe the output from the log file to web browser. It would be only a dozen lines of code or so.