-3

I am in a situation to write code to store logs for 30 days. but we were asked to use very less space . Is there any better way to store logs with less space

I have tried deleting log files for every 30 days. But we are asked to use less space.

jeev
  • 1
  • 1
  • I'm confused, you wrote code to store logs for 30 days? Or are you using the logging framework provided by Spring Boot? If you're using your own code, can you show us the relevant code? If you're using the logging framework provided by Spring Boot, which is Logback by default, then show us your logging configuration. In that case, you might want to check [How do I configure logback to gzip my logs automatically?](https://stackoverflow.com/q/16868011). – g00glen00b Aug 30 '23 at 08:20

0 Answers0