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

Add script file name for logging with log4j MDC

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.11
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated: