hujiang75277381 opened a new issue #2956:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2956


   问题描述:
   在主线程中,使用子线程或者线程池,使用logger.info 无法将日志写入到 worker log file。
   
   问题分析:
   在 com.sefonsoft.cloud.dispatch.worker.worker.log.TaskLogAppender 
中使用的是ThreadName,分割 获取日志文件,但是在子线程中是无法设置,所以无法写入到日志文件中。
   
   建议:
   TaskLogger 中 在msg 中设置了"[taskAppId=%s]" ,可以从这个字符串下手,进行切割。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to