
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SLF4J: Simple Logging Facade for Java". The branch, master has been updated via e2f99d41724cde145e4e6baa71859dc7ccee2c80 (commit) from 75cf4a0c012f4158246e15f7231360afd948faa5 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://git.qos.ch/gitweb/?p=slf4j.git;a=commit;h=e2f99d41724cde145e4e6baa718... http://github.com/ceki/slf4j/commit/e2f99d41724cde145e4e6baa71859dc7ccee2c80 commit e2f99d41724cde145e4e6baa71859dc7ccee2c80 Author: Ceki Gulcu <ceki@qos.ch> Date: Sun Apr 4 21:49:54 2010 +0200 Added NDC class fixing bug 170 diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/NDC.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/NDC.java new file mode 100644 index 0000000..a9570ac --- /dev/null +++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/NDC.java @@ -0,0 +1,66 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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; + +import java.util.Stack; + +/** + * A bare-bones implementation of log4j's NDC which compiles and prevents run + * time exceptions. + * + * @since SLF4J 1.6.0 + */ + +public class NDC { + + public static void clear() { + } + + public static Stack cloneStack() { + return null; + } + + public static void inherit(Stack stack) { + } + + static public String get() { + return null; + } + + public static int getDepth() { + return 0; + } + + public static String pop() { + return ""; + } + + public static String peek() { + return ""; + } + + public static void push(String message) { + } + + static public void remove() { + } + + static public void setMaxDepth(int maxDepth) { + } + +} ----------------------------------------------------------------------- Summary of changes: .../src/main/java/org/apache/log4j/NDC.java | 66 ++++++++++++++++++++ 1 files changed, 66 insertions(+), 0 deletions(-) create mode 100644 log4j-over-slf4j/src/main/java/org/apache/log4j/NDC.java hooks/post-receive -- SLF4J: Simple Logging Facade for Java