/** * Returns a StopWatchFactory that has been configured previously. May return * null, if the factory has not been configured. * * @param loggerName name to search for. * @return A factory, or null, if not found. */ public static StopWatchFactory getInstance(String loggerName) throws ConfigurationException { StopWatchFactory swf = getFactories().get(loggerName); if( swf == null ) throw new ConfigurationException("No logger by the name "+loggerName+" found."); return swf; }
/** * Returns a StopWatchFactory that has been configured previously. May return * null, if the factory has not been configured. * * @param loggerName name to search for. * @return A factory, or null, if not found. */ public static StopWatchFactory getInstance(String loggerName) throws ConfigurationException { StopWatchFactory swf = getFactories().get(loggerName); if( swf == null ) throw new ConfigurationException("No logger by the name "+loggerName+" found."); return swf; }
public static StopWatchFactory getInstance(String configFileName, String loggerName) throws ConfigurationException { StopWatchFactory swf = getFactories().get(loggerName); if( swf == null ) { configure( findConfigFile( configFileName ) ); swf = getFactories().get(loggerName); if( swf == null ) { throw new ConfigurationException("No logger by the name "+loggerName+" found."); } } return swf; }
public static StopWatchFactory getInstance(String configFileName, String loggerName) throws ConfigurationException { StopWatchFactory swf = getFactories().get(loggerName); if( swf == null ) { configure( findConfigFile( configFileName ) ); swf = getFactories().get(loggerName); if( swf == null ) { throw new ConfigurationException("No logger by the name "+loggerName+" found."); } } return swf; }