我想将消息记录在文件中而不是在控制台上.我正在使用Spring Boot,我的配置如下:
application.properties:
logging.level: DEBUG
logging.level: ERROR
logging.file: ${HOME}/application.log
Run Code Online (Sandbox Code Playgroud)
我只在我的application.log文件中获取INFO的日志消息,但我也想要ERROR和DEBUG消息.
我的要求是我想要error.log文件中的ERROR消息和DEBUG消息debug.log以及INFO消息info.log.
任何帮助非常感谢.