Irrespective of the logging framework used, Spring Boot allows a few basic configuration options in application properties. A few examples are shown in the following snippet:
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR
logging.file=<<PATH_TO_LOG_FILE>>
In the age of microservices, irrespective of the framework you use for logging, we recommend that you log to the console (instead of a file) and use a centralized logging store tool to capture logs from all microservice instances.
By default, Spring and Spring Boot use the commons-logging APIs. We use Spring Boot starters to simplify the configuration of specific logging frameworks.