package org.javacs;

import java.util.logging.Level;
import java.util.logging.Logger;
import org.javacs.lsp.*;

public class Main {
    private static final Logger LOG = Logger.getLogger("main");

    public static void setRootFormat() {
        var root = Logger.getLogger("");

        for (var h : root.getHandlers()) h.setFormatter(new LogFormat());
    }

    private JavaLanguageServer createServer(LanguageClient client) {
        return new JavaLanguageServer(client);
    }

    public static void main(String[] args) {
        try {
            // Logger.getLogger("").addHandler(new FileHandler("javacs.%u.log", false));
            setRootFormat();

            LSP.connect(JavaLanguageServer::new, System.in, System.out);
        } catch (Throwable t) {
            LOG.log(Level.SEVERE, t.getMessage(), t);

            System.exit(1);
        }
    }
}

@@ -14,16 +14,41 @@
 avacs;%0A%0A
+import java.util.Arrays;%0A
 import j
@@ -543,24 +543,165 @@
 g%5B%5D args) %7B%0A
+        boolean quiet = Arrays.stream(args).anyMatch(%22--quiet%22::equals);%0A%0A        if (quiet) %7B%0A          LOG.setLevel(Level.OFF);%0A        %7D%0A%0A
         try 

Add '--quiet' option for standalone usage