[BUG] 任务实际日志路径和任务实例的日志路径不相同,导致无法查看日志
*For better global communication, please give priority to using English description, thx! *
Describe the bug the task instance log is System.getProperty("user.dir") + "/logs/" * but I can change the path with the log xml
To Reproduce Steps to reproduce the behavior, for example:
- I config the log Path to other dir for worker_log.xml
- run the task ,then get the rollView log
- the log path of task instance in database is still the user work dir + "/logs"
- the path not exist
Expected behavior the task instance log path should be same with the log xml properties
Screenshots If applicable, add screenshots to help explain your problem.
Which version of Easy Scheduler: -[1.1.0]
Additional context Add any other context about the problem here.
**Requirement or improvement
@boandai
add properties worker_logback.xml >logBase
<filter class="cn.escheduler.server.worker.log.TaskLogFilter"></filter>
<Discriminator class="cn.escheduler.server.worker.log.TaskLogDiscriminator">
<key>taskAppId</key>
<logBase>${log.base}</logBase>
</Discriminator>
on 1.1.0-SNAPSHOT branch dev