private static void initializeLogging() {
    LogOptions logOptions = Config.getInstance().getLog();
    try {
      Logger.setFileHandler(new FileHandler(Logger.getLoggingFilePath(logOptions.getDirectory())));
    } catch (IOException e) {
      CMessageBox.showWarning(
          null, "Failed to initialize file logger. Could not create log file handler.");
    }

    // Do not move these two lines before setFileHandler
    Logger.setConsoleLogging(logOptions.getToStderr());
    Logger.setFileLogging(logOptions.getToFile());

    Logger.setLogLevel(Config.fromProtoLogLevel(logOptions.getLevel()));
  }
Launcher class for BinDiff. Note: The name of this class is used directly as the application name
on macOS.
java/ui/src/main/java/com/google/security/zynamics/bindiff/BinDiff.java