private boolean udpateLayoutIfNeeded(Appender appender, LoggingEvent event) {
if (event instanceof FoundationLof4jLoggingEvent) {
FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent) event;
Marker marker = foundationLof4jLoggingEvent.getSlf4jMarker();
if (marker != null) {
Map<String, Layout> map = FoundationLogger.markerAppendersMap.get(marker.getName());
if (map != null) {
Layout specificPatternLayout = map.get(appender.getName());
if (specificPatternLayout != null) {
appender.setLayout(specificPatternLayout);