I am not sure what you mean by “regular expression” with regards to the PatternLayout as it doesn’t use regular expressions. Have you tried the same pattern? My guess is it should do the same thing Log4j 1 did.
Ralph > On Feb 27, 2020, at 2:25 AM, EDMONDO SENA <edse...@gmail.com> wrote: > > > Hi Everybody, > > In log4j1.x I was using the PatternLayout(String Pattern) namely: > > - setLayout(new PatternLayout("%d %-lp - %m"). > > Now I didn't understand the equivalent of making this regular expression in > log4j2. > Can you help me understand better? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org