@Override
	protected LoggingEvent setupEvent(LoggingEvent event) {
		// if(this.layout == null) {
		// 	errorHandler.error("No layout for appender " + name, null, ErrorCode.MISSING_LAYOUT);
		// 	return null;
		// }

		Object sessionId = event.getMDC(sessionKey);
		if(null == sessionId) {
			return null;
		}

		List<LoggerEventListener> loggers = SessionLoggerAppender.LOGGERS.get(sessionId);
		if(loggers == null || loggers.isEmpty()) {
			return null;
		}

		event.getNDC();					// zapamiętanie NDC
		event.getThreadName();			// zapamiętanie nazwy wątku
		event.getMDCCopy();				// skopiowanie MDC
		event.getLocationInformation();	// zapamiętanie lokalizacji
		event.getRenderedMessage();		// zapamiętanie wiadomości
		event.getThrowableStrRep();		// zapamiętanie zrzutu błędu

		return event;
	}
@ Override protected LoggingEvent setupEvent ( LoggingEvent event ) { Object sessionId = event . getMDC ( sessionKey ) ; if ( null == sessionId ) { return null ; } List < LoggerEventListener > loggers = SessionLoggerAppender . LOGGERS . get ( sessionId ) ; if ( loggers == null || loggers . isEmpty ( ) ) { return null ; } event . getNDC ( ) ; event . getThreadName ( ) ; event . getMDCCopy ( ) ; event . getLocationInformation ( ) ; event . getRenderedMessage ( ) ; event . getThrowableStrRep ( ) ; return event ; }
}