JoyLau / joylau-springboot-daemon-windows

将SpringBoot应用制作为Windows Services服务 | make spring boot module to windows services
http://image.joylau.cn/blog/joylau-springboot-daemon-service-video.mp4
MIT License
68 stars 38 forks source link

日志如何拆分 #9

Closed william-abel closed 4 years ago

william-abel commented 4 years ago

你好 我SpringBoot 用到了这个 我用log4j2 做日志 但是运行后 日志还是被输出到了 logs/.err.log logs/.out.log logs/*.wrapper.log 请问 如何设置 ?

JoyLau commented 4 years ago

logs 下日志的输出取决于程序在控制台的输出 你可能需要在 application.yml 指定日志的输出位置: logging: file: /path/xxxxxx

william-abel notifications@github.com 于2020年8月18日周二 上午5:23写道:

你好 我SpringBoot 用到了这个 我用log4j2 做日志 但是运行后 日志还是被输出到了 logs/.err.log logs/.out.log logs/*.wrapper.log 请问 如何设置 ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JoyLau/joylau-springboot-daemon-windows/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2AHUIASI7OCOU24RRWT33SBGNV7ANCNFSM4QCHVBWA .