dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] 任务实际日志路径和任务实例的日志路径不相同,导致无法查看日志

Open zhanghuidouble opened this issue 7 years ago • 2 comments

*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:

  1. I config the log Path to other dir for worker_log.xml
  2. run the task ,then get the rollView log
  3. the log path of task instance in database is still the user work dir + "/logs"
  4. 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

zhanghuidouble avatar Aug 22 '19 01:08 zhanghuidouble

@boandai

zhanghuidouble avatar Aug 22 '19 01:08 zhanghuidouble

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

ww1516123 avatar Sep 19 '19 05:09 ww1516123