Back to Pinpoint

replace logger pattern automatically

agent-module/plugins/log4j2/README.md

3.0.5716 B
Original Source

Log4j2

Pinpoint Configuration

pinpoint.config

Logging options.

profiler.log4j2.logging.transactioninfo=false

# replace logger pattern automatically
# %message, $msg or %m would be replace with "TxId:%X{PtxId} %msg"
# in the search config, put the longest/longer variable first.
# variables/aliases: https://logging.apache.org/log4j/2.x/manual/layouts.html under section "Patterns"
#profiler.log4j2.logging.pattern.replace.enable=false
#profiler.log4j2.logging.pattern.replace.search=%message,%msg,%m
#profiler.log4j2.logging.pattern.replace.with="TxId:%X{PtxId} %msg"