code: private void fixLogging(BimServerConfig config) throws IOException {
  		Path logFolder = config.getHomeDir().resolve("logs");
  		if (!Files.isDirectory(logFolder)) {
  			Files.createDirectories(logFolder);
  		}
  		Path file = logFolder.resolve("bimserver.log");
  
  		LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
  		PatternLayoutEncoder ple = new PatternLayoutEncoder();
  
  		ple.setPattern("%date %level [%thread] %logger{10} [%file:%line] %msg%n");
  		ple.setContext(lc);
  		ple.start();
  		FileAppender<ILoggingEvent> fileAppender = new FileAppender<ILoggingEvent>();
  		String filename = file.toAbsolutePath().toString();
  
  		if (lc instanceof LoggerContext) {
  		    if (!lc.isStarted()) {
  		    	lc.start();
  		    }
  		}
  		
  		System.out.println("Logging to " + filename);
  		
  		fileAppender.setFile(filename);
  		fileAppender.setEncoder(ple);
  		fileAppender.setContext(lc);
  		fileAppender.start();
  
  		for (ch.qos.logback.classic.Logger log : lc.getLoggerList()) {
  			if (log.getLevel() != null) {
  				log.addAppender(fileAppender);
  			}
  		}
  	}
docs: Add a file appender to every logger we can find (the loggers should already have been configured via logback.xml)
  
  @throws IOException