Reputation: 3512
I have logs that I want to show on a web browser. ( The source code is using Log4j for logging.) I know where the logs are created. I want to code in java to display them on a web.
Can you give me some tips on Java coding ? (what class or API do I use to read the logs and display them)
Upvotes: 0
Views: 121
Reputation: 4601
Simple solution: You can go ahead creating a Controller which can read from the log file and provide you insights as a huge String(JSON).
Solution you can try implementing on your own: http://logging.apache.org/chainsaw/2.x/ to give you a headstart. Try to make this(Without UI,of course) with your log file. Believe me, you can learn a lot if you do this.
Solution I'd prefer: I'd suggest you implement https://www.elastic.co/products/kibana to aid you from your application tier. This also has steep learning curve for you if you are newbie. Good luck!
Upvotes: 1