[slf4j-dev] svn commit: r1345 - slf4j/trunk/slf4j-api/src/main/java/org/slf4j

Ralph Goers rgoers at apache.org
Wed Jun 10 02:09:52 CEST 2009


.reportFailure("Class path contains multiple SLF4J bindins.");
should be
.reportFailure("Class path contains multiple SLF4J bindings.");

Ralph

On Jun 9, 2009, at 1:24 PM, ceki at slf4j.org wrote:

> Author: ceki
> Date: Tue Jun  9 22:24:16 2009
> New Revision: 1345
>
> Modified:
>   slf4j/trunk/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java
>
> Log:
> improved error messages
>
> Modified: slf4j/trunk/slf4j-api/src/main/java/org/slf4j/ 
> LoggerFactory.java
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- slf4j/trunk/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java	 
> (original)
> +++ slf4j/trunk/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java	 
> Tue Jun  9 22:24:16 2009
> @@ -56,6 +56,7 @@
> public final class LoggerFactory {
>
>   static final String NO_STATICLOGGERBINDER_URL = "http://www.slf4j.org/codes.html#StaticLoggerBinder 
> ";
> +  static final String MULTIPLE_BINDINGS_URL = "http://www.slf4j.org/codes.html#multiple_bindings 
> ";
>   static final String NULL_LF_URL = "http://www.slf4j.org/codes.html#null_LF 
> ";
>   static final String VERSION_MISMATCH = "http://www.slf4j.org/codes.html#version_mismatch 
> ";
>   static final String SUBSTITUTE_LOGGER_URL = "http://www.slf4j.org/codes.html#substituteLogger 
> ";
> @@ -197,11 +198,12 @@
>       }
>       if (implementationList.size() > 1) {
>         Util
> -            .reportFailure("ClassPath contains more than one SLF4J  
> implementation.");
> +            .reportFailure("Class path contains multiple SLF4J  
> bindins.");
>         for(int i = 0; i < implementationList.size(); i++) {
> -          Util.reportFailure("Found binding under  
> ["+implementationList.get(i)+"]");
> +          Util.reportFailure("Found binding in  
> ["+implementationList.get(i)+"]");
>         }
> -        Util.reportFailure("Will pick up one binding at random.");
> +        Util.reportFailure("See " + MULTIPLE_BINDINGS_URL
> +            + " for an explanation.");
>       }
>     } catch (IOException ioe) {
>       Util.reportFailure("Error getting resources from path", ioe);
> _______________________________________________
> dev mailing list
> dev at slf4j.org
> http://www.slf4j.org/mailman/listinfo/dev




More information about the slf4j-dev mailing list