Jin Lee
Jin Lee

Reputation: 3512

reading logs and displaying them on a web browser using Java

I have logs in folder /home/a/b (located in a remote server)

I want to display logs in my web browser using Java. To get data in the folder /home/a/b and to display them on my web page, what are some methods(API) I can use?

Upvotes: 1

Views: 863

Answers (1)

Kellerman Paulo
Kellerman Paulo

Reputation: 46

The simplest approach I can imagine is using a SSH API like JSch, but I don't know how performatic this is. Anyway, here goes a good example:

https://stackoverflow.com/a/9019095/7528396

Note that you can read the remote file and render line by line.

Upvotes: 1

Related Questions