[jboss-svn-commits] JBoss Common SVN: r1902 - in branches/logging_refactoring: common-logging/src/main/java/org/jboss/logging src/main/org/jboss/logging
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 2 11:50:13 EDT 2006
Author: ruel.loehr at jboss.com
Date: 2006-08-02 11:50:10 -0400 (Wed, 02 Aug 2006)
New Revision: 1902
Added:
branches/logging_refactoring/common-logging/src/main/java/org/jboss/logging/JDK14LoggerPlugin.java
Removed:
branches/logging_refactoring/src/main/org/jboss/logging/JDK14LoggerPlugin.java
Log:
pull common-logging source into sep project
Copied: branches/logging_refactoring/common-logging/src/main/java/org/jboss/logging/JDK14LoggerPlugin.java (from rev 1901, branches/logging_refactoring/src/main/org/jboss/logging/JDK14LoggerPlugin.java)
Deleted: branches/logging_refactoring/src/main/org/jboss/logging/JDK14LoggerPlugin.java
===================================================================
--- branches/logging_refactoring/src/main/org/jboss/logging/JDK14LoggerPlugin.java 2006-08-02 15:47:10 UTC (rev 1901)
+++ branches/logging_refactoring/src/main/org/jboss/logging/JDK14LoggerPlugin.java 2006-08-02 15:50:10 UTC (rev 1902)
@@ -1,115 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.logging;
-
-import java.util.logging.Logger;
-import java.util.logging.Level;
-
-/** An example LoggerPlugin which uses the JDK java.util.logging framework.
- *
- * @author Scott.Stark at jboss.org
- * @version $Revison:$
- */
-public class JDK14LoggerPlugin implements LoggerPlugin
-{
- private Logger log;
-
- public void init(String name)
- {
- log = Logger.getLogger(name);
- }
-
- public boolean isTraceEnabled()
- {
- return log.isLoggable(Level.FINER);
- }
-
- public void trace(Object message)
- {
- log.finer(message.toString());
- }
-
- public void trace(Object message, Throwable t)
- {
- log.log(Level.FINER, message.toString(), t);
- }
-
- public boolean isDebugEnabled()
- {
- return log.isLoggable(Level.FINE);
- }
-
- public void debug(Object message)
- {
- log.fine(message.toString());
- }
-
- public void debug(Object message, Throwable t)
- {
- log.log(Level.FINE, message.toString(), t);
- }
-
- public boolean isInfoEnabled()
- {
- return log.isLoggable(Level.INFO);
- }
-
- public void info(Object message)
- {
- log.info(message.toString());
- }
-
- public void info(Object message, Throwable t)
- {
- log.log(Level.INFO, message.toString(), t);
- }
-
- public void warn(Object message)
- {
- log.warning(message.toString());
- }
-
- public void warn(Object message, Throwable t)
- {
- log.log(Level.WARNING, message.toString(), t);
- }
-
- public void error(Object message)
- {
- log.severe(message.toString());
- }
-
- public void error(Object message, Throwable t)
- {
- log.log(Level.SEVERE, message.toString(), t);
- }
-
- public void fatal(Object message)
- {
- log.severe(message.toString());
- }
-
- public void fatal(Object message, Throwable t)
- {
- log.log(Level.SEVERE, message.toString(), t);
- }
-}
More information about the jboss-svn-commits
mailing list