private Map<String, String> mergePropertyMaps(ILoggingEvent event) {
    Map<String, String> mergedMap = new HashMap<String, String>();
    // we add the context properties first, then the event properties, since
    // we consider that event-specific properties should have priority over
    // context-wide properties.
    Map<String, String> loggerContextMap = event.getLoggerContextVO().getPropertyMap();
    if (loggerContextMap != null) {
      mergedMap.putAll(loggerContextMap);
    }

    Map<String, String> mdcMap = event.getMDCPropertyMap();
    if (mdcMap != null) {
      mergedMap.putAll(mdcMap);
    }

    return mergedMap;
  }
private Map<String, String> mergePropertyMaps(ILoggingEvent event) {
    Map<String, String> mergedMap = new HashMap<String, String>();
    
    
    
    Map<String, String> loggerContextMap = event.getLoggerContextVO().getPropertyMap();
    if (loggerContextMap != null) {
      mergedMap.putAll(loggerContextMap);
    }

    Map<String, String> mdcMap = event.getMDCPropertyMap();
    if (mdcMap != null) {
      mergedMap.putAll(mdcMap);
    }

    return mergedMap;
  }
private Map < String , String > mergePropertyMaps ( ILoggingEvent event ) { Map < String , String > mergedMap = new HashMap < String , String > ( ) ; // we add the context properties first, then the event properties, since // we consider that event-specific properties should have priority over // context-wide properties. Map < String , String > loggerContextMap = event . getLoggerContextVO ( ) . getPropertyMap ( ) ; if ( loggerContextMap != null ) { mergedMap . putAll ( loggerContextMap ) ; } Map < String , String > mdcMap = event . getMDCPropertyMap ( ) ; if ( mdcMap != null ) { mergedMap . putAll ( mdcMap ) ; } return mergedMap ; }
Merges a log event's properties with the properties of the logger context.
The context properties are first in the map, and then the event's properties
are appended.

@param event the logging event to evaluate
@return the merged properties map
Merges a log event s properties with the properties of the logger context . The context properties are first in the map and then the event s properties are appended .