code: public static boolean isLog4jConfigurationAvailable()
     {
        String log4jConfiguration = System.getProperty(LOG4J_CONFIGURATION);
        String resource = log4jConfiguration != null ? log4jConfiguration : LOG4J_PROPERTIES;
        URL url = null;
        try
        {
           url = new URL(resource);
           loadConfiguration(url);
        }
        catch (Exception e1)
        {
           try
           {
              url = Loader.getResource(resource);
              loadConfiguration(url);
           }
           catch (Exception e2)
           {
              //ignore
           }
        }
        return url != null;
     }
docs: Returns true if a log4j configuration can be found given the current environment.
  See http://logging.apache.org/log4j/1.2/manual.html (Default Initialization Procedure)
  @return