Skip to content

Commit

Permalink
backward compatibility with JDK 1.5: remove reference to a constant d…
Browse files Browse the repository at this point in the history
…efined in 1.6
  • Loading branch information
chrisdolan committed Oct 26, 2011
1 parent 8317bd6 commit adc07c8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -404,7 +404,8 @@ private static void setLevelToJavaLogging( final Dictionary configuration )
if (name.equals( "log4j.rootLogger" ))
{
setJULLevel( java.util.logging.Logger.getLogger(""), value );
setJULLevel( java.util.logging.Logger.getLogger(java.util.logging.Logger.GLOBAL_LOGGER_NAME), value );
// "global" comes from java.util.logging.Logger.GLOBAL_LOGGER_NAME, but that constant wasn't added until Java 1.6
setJULLevel( java.util.logging.Logger.getLogger("global"), value );
}

if (name.startsWith("log4j.logger."))
Expand Down

0 comments on commit adc07c8

Please sign in to comment.