code: public static void rolloverLogfile() {
  		Logger logger = Logger.getRootLogger();       // NOSONAR - local logger used on purpose here
  		@SuppressWarnings("unchecked")
  		Enumeration<Object> appenders = logger.getAllAppenders();
  		while(appenders.hasMoreElements()) {
  			Object obj = appenders.nextElement();
  			if(obj instanceof RollingFileAppender) {
  				((RollingFileAppender)obj).rollOver();
  			}
  		}
  	}
docs: Manually roll over logfiles to start with a new logfile