Need a replacement/alternative for below PID lookup in Log4j 2.x
Works in Log4j 1.x
%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] [%X{PID}] %c - %m%n
Everything else works fine in log4j 2.x, except PID is getting blank.
FYI, layout type is appender.rolling.layout.type = PatternLayout