Created
January 17, 2023 19:28
-
-
Save rajeevshukla/6aadfca1b1ca2670c9f09839eb1b91a8 to your computer and use it in GitHub Desktop.
Log4j appender to log IP and user Id via log4j MDC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %X{ip} %X{userId} - %m%n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment