[
https://issues.apache.org/jira/browse/PIG-2916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454580#comment-13454580
]
Haitao Yao commented on PIG-2916:
---------------------------------
But i think the MDC is better, because we may log more information into the
log. MDC will filter the specific value you want.
> Add script file name for logging with log4j MDC
> -----------------------------------------------
>
> Key: PIG-2916
> URL: https://issues.apache.org/jira/browse/PIG-2916
> Project: Pig
> Issue Type: Improvement
> Affects Versions: 0.11
> Reporter: Haitao Yao
> Attachments: mdc.patch
>
>
> We often execute several scripts in parallel and log the messages into one
> log file.
> If got error , we can not identify which pig script is causing it. So add a
> MDC with name "pig_script_file_name" and add %X{pig_script_file_name} into
> log4j configurations, we will surely identify the errorous pig script.
> the patch is attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira