Vishesh
Vishesh

Reputation: 3769

SLF4j API to read Logs

I am using SLF4j in my java application to store the logs and it works fine. Now i need to retrieve the logs generated by my application . Is there any API SLF4J provide to retrieve the logs?

I tried looking into the manual of SL4j but couldn't find anything.

Upvotes: 3

Views: 1406

Answers (1)

DwB
DwB

Reputation: 38320

SLF4j does not provide an API to read logs. It is strictly a tool for writing logs. Logs are just text files, read them like any other text file.

Check out the answer to this question: reading log file in java

Upvotes: 3

Related Questions