Spring Boot: How to disable startup log message "Starting Application on mbp with PID 99446"
You can disable those three log messages by configuring your SpringApplication
not to log startup info:
new SpringApplicationBuilder(YourApplication.class)
.logStartupInfo(false)
.run(args);
Alternatively, if you want to stick with your log levels-based approach, they are logged using the logger for you application's main class. Judging by the output above, it's called s7.Application
so you can also disable the messages by adding the following to application.properties
:
logging.level.s7.Application=WARN
You can disable the messages by adding the following to application.properties:
spring.main.log-startup-info=OFF