-
1. Re: How to read server.log/boot.log ?
peterj Dec 24, 2008 1:01 PM (in response to roberto)You can open the file as a read-only file stream. Or were you looking for something else?
I once had a servlet that opened the log files as read-only text streams and then displayed the last 100 or so lines to the user and let the user navigate through the log file. -
2. Re: How to read server.log/boot.log ?
roberto Dec 25, 2008 4:48 AM (in response to roberto)Hi Peter (and Merry Xmas!) and Thank you for you reply.
I prefer to don't open directly myself log file.
I prefer to call some jboss API in order to obtain log information.
Open directly log file I need to know where log files are located, rollover policy and so on.
But if this is the only way to have it, no problem.
I prefer also to have a JMX or something like it because in the future I would like to build this log console inside my ear application connected to JBoss or WebSphere or NetWeaver ..... Maybe having a JMX can be more simple to implemement the right adapter