0
I implemented the LOG in my Spring Boot application but it generates entire files of several days would you like to partition per day as ? To make the configuration I am using in my Properties the following code:
logging.path=/home/app/logs/
logging.file=app-api.log
and in the log call I use this way :
private static final Logger LOGGER = LoggerFactory.getLogger(ProductController.class);
@GetMapping(path = "/list-all")
public List<Product> listAllProduct(){
try {
return roductRepository.findAll();
} catch (Exception e) {
LOGGER.error("Erro ao efetuar a busca");
e.printStackTrace();
return null;
}
}
OK I will use thank you very much
– Matheus Felix