Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-3480

Add pipesClientId to pipes forked process for better logging

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      Given that pipes forks processes, it would be convenient to configure log4j2 to output one log file per forked process given that log4j2 can't handle multiple processes writing to the same file.

      A file appender in the log4j2-async.xml file might look something like this:

      <Appenders>
          <File name="file-appender" fileName="logs/client-${sys:pipesClientId}.log">
            <PatternLayout pattern="%-5p [%t] %d{HH:mm:ss,SSS} %c %m%n"/>
          </File>
      
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tallison Tim Allison
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment