Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2916

Add script file name for logging with log4j MDC

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.11
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      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.

        Attachments

        1. mdc.patch
          1 kB
          Haitao Yao

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              haitao.yao Haitao Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: