To disable console logging, add the following properties to file:

# Empty this property to disable console logging

# Specify the path to the main log file so you will still have your logs somewhere

If you want to enable console logging in your IDE, here are two ways to re-enable it:

  • Add an alias to the log file /path/to/folder/application.log in your Run Configuration
  • Override the property "logging.pattern.console" in your Run Configuration

Tested with Spring Boot 2.1.4