[jboss-svn-commits] JBoss Common SVN: r1969 - trunk/common-logging-spi/trunk/src/main/java/org/jboss/logging
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Aug 25 05:32:16 EDT 2006
Author: dimitris at jboss.org
Date: 2006-08-25 05:32:14 -0400 (Fri, 25 Aug 2006)
New Revision: 1969
Modified:
trunk/common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java
Log:
JBCOMMON-2, display cause on logging delegate initialization failure
Modified: trunk/common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java
===================================================================
--- trunk/common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java 2006-08-25 09:31:18 UTC (rev 1968)
+++ trunk/common-logging-spi/trunk/src/main/java/org/jboss/logging/Logger.java 2006-08-25 09:32:14 UTC (rev 1969)
@@ -1,24 +1,24 @@
/*
- * 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.
- */
+ * 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.io.Serializable;
@@ -353,7 +353,9 @@
}
catch(Throwable e)
{
- System.err.println("Failed to initalize plugin: "+plugin);
+ String extraInfo = e.getMessage();
+ System.err.println("Failed to initalize plugin: " + plugin +
+ (extraInfo != null ? ", cause: " + extraInfo : ""));
plugin = new NullLoggerPlugin();
}
More information about the jboss-svn-commits
mailing list