-
1. Re: viewing logs in web-console?
peterj Apr 16, 2007 10:45 AM (in response to bezdomny)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 Apr 16, 2007 10:54 AM (in response to 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 Apr 17, 2007 1:01 AM (in response to bezdomny)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.