*
* @param configurationFile The log4j configuration file.
* @param refreshPeroid The refresh refreshPeroid (in seconds).
*/
public Log4jService(final String rootLoggerLevel, final String configurationFile, final int refreshPeroid, ServerInfo serverInfo) {
LogFactory logFactory = LogFactory.getFactory();
if (!(logFactory instanceof GeronimoLogFactory)) {
throw new IllegalStateException("Commons log factory: " + logFactory + " is not a GeronimoLogFactory");
}
this.rootLoggerLevel = XLevel.toLevel(rootLoggerLevel);
this.refreshPeriod = refreshPeroid;