/*
 * Copyright 2001-2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.log4j;

public class MDC {

  public static void put(String key, String value) {
    org.slf4j.MDC.put(key, value);
  }
  
  public static void put(String key, Object value) {
    if (value != null) {
      put(key, value.toString());
    } else {
      put(key, null);
    }
  }
  
  public static Object get(String key) {
    return org.slf4j.MDC.get(key);
  }
  
  public static void remove(String key) {
    org.slf4j.MDC.remove(key);
  }
  
  public static void clear() {
    org.slf4j.MDC.clear();
  }
}

@@ -642,16 +642,67 @@
 log4j;%0A%0A
+import java.util.Hashtable;%0Aimport java.util.Map;%0A%0A
 public c
@@ -1193,10 +1193,455 @@
 ();%0A  %7D%0A
+  %0A  /** %0A   * This method is not part of the Log4J public API. However it %0A   * has been called by other projects. This method is here temporarily  %0A   * until projects who are depending on this method release fixes. %0A   */%0A  @Deprecated%0A  public static Hashtable getContext() %7B%0A    Map map = org.slf4j.MDC.getCopyOfContextMap();%0A%0A    if (map != null) %7B%0A      return new Hashtable(map);%0A    %7D%0A    else %7B%0A      return new Hashtable();%0A    %7D%0A  %7D%0A
 %7D%0A

Add Log4J method to MDC to workaround use in wild