I'm working on a Kotlin project with logback, and i'd like to be able to get all the logs of my server with an API.

For example localhost:8088/logs/recent would return a json with all the previous hour logs.

I tried to store the logs in MongoDB with an appender and serve them with an rest but it slows down the server A LOT, I can't even open the app. Same problem with a file appender.

I can't find any solution for this problem in logback framework. What would you advise me to use ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.