Pig
  1. Pig
  2. PIG-2916

Add script file name for logging with log4j MDC

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major 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.

      1. mdc.patch
        1 kB
        Haitao Yao

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development