53.2 Programmatically
You can also activate a listener by invoking the SpringApplication.addListeners(…)
method and passing the appropriate Writer
object. This method also allows you to customize the file name and path via the Writer
constructor.