Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The GTRID is pushed under the btm-gtrid name. You can make it appear in your Log4J logs by adding it to the ConversionPattern:

Code Block

 <appender name="FileAppender" class="org.apache.log4j.FileAppender">

...


    <param name="File" value="SomeLogFile.txt"/>

...


    <layout class="org.apache.log4j.PatternLayout">

...


        <param name="ConversionPattern" value="%X

...

{btm-gtrid

...

} - %m%n"/>

...


    </layout>

...


 </appender>

When using a different implementation than Log4J, please refer to your logger's documentation to understand how to make use of this feature.

...