From 19f96a84ed79fd72dae280f1042733d294b41daf Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 27 Apr 2010 07:45:40 +0000 Subject: [PATCH] removed ready for clean room impl git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1569 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../java/org/eclipse/jetty/jsp/JettyLog.java | 121 ------------------ 1 file changed, 121 deletions(-) delete mode 100644 jetty-jsp-2.1/src/main/java/org/eclipse/jetty/jsp/JettyLog.java diff --git a/jetty-jsp-2.1/src/main/java/org/eclipse/jetty/jsp/JettyLog.java b/jetty-jsp-2.1/src/main/java/org/eclipse/jetty/jsp/JettyLog.java deleted file mode 100644 index ba49dd26e3c..00000000000 --- a/jetty-jsp-2.1/src/main/java/org/eclipse/jetty/jsp/JettyLog.java +++ /dev/null @@ -1,121 +0,0 @@ -// ======================================================================== -// Copyright (c) 2010 Mort Bay Consulting Pty. Ltd. -// ------------------------------------------------------------------------ -// All rights reserved. This program and the accompanying materials -// are made available under the terms of the Eclipse Public License v1.0 -// and Apache License v2.0 which accompanies this distribution. -// The Eclipse Public License is available at -// http://www.eclipse.org/legal/epl-v10.html -// The Apache License v2.0 is available at -// http://www.opensource.org/licenses/apache2.0.php -// You may elect to redistribute this code under either of these licenses. -// ======================================================================== - -package org.eclipse.jetty.jsp; - -import com.sun.org.apache.commons.logging.Log; -import com.sun.org.apache.commons.logging.LogFactory; - -/** - * Log - * - * Bridges the com.sun.org.apache.commons.logging.Log to Jetty's log. - * - **/ -public class JettyLog implements Log -{ - private static boolean __initialized=false; - - private String _name; - private org.eclipse.jetty.util.log.Logger _logger; - - public static void init() - { - synchronized (JettyLog.class) - { - if (!__initialized) - { - __initialized=true; - LogFactory.setLogImplClassName(JettyLog.class.getName()); - } - } - } - - /** - * - */ - public JettyLog(String name) - { - _name = name; - _logger = org.eclipse.jetty.util.log.Log.getLogger(name); - } - public void fatal (Object message) - { - _logger.warn(message.toString(), null, null); - } - - public void fatal (Object message, Throwable t) - { - _logger.warn(message.toString(), t); - } - - public void debug(Object message) - { - _logger.debug(message.toString(), null); - } - - public void debug (Object message, Throwable t) - { - _logger.debug(message.toString(), t); - } - - public void trace (Object message) - { - _logger.debug(message.toString(), null); - } - - public void info(Object message) - { - _logger.info(message.toString(), null, null); - } - - public void error(Object message) - { - _logger.warn(message.toString(), null); - } - - public void error(Object message, Throwable cause) - { - _logger.warn(message.toString(), cause); - } - - public void warn(Object message) - { - _logger.warn(message.toString(), null); - } - - public boolean isDebugEnabled () - { - return _logger.isDebugEnabled(); - } - - public boolean isWarnEnabled () - { - return _logger.isDebugEnabled(); - } - - public boolean isInfoEnabled () - { - return true; - } - - public boolean isErrorEnabled () - { - return true; - } - - public boolean isTraceEnabled () - { - return _logger.isDebugEnabled(); - } -}