Search in sources :

Example 1 with JavaUtilLog

use of org.eclipse.jetty.util.log.JavaUtilLog in project airlift by airlift.

the class JettyLogging method setup.

public static void setup() {
    Log.setLog(new NoOpLogger());
    Log.initialized();
    Log.setLog(new JavaUtilLog());
}
Also used : JavaUtilLog(org.eclipse.jetty.util.log.JavaUtilLog)

Example 2 with JavaUtilLog

use of org.eclipse.jetty.util.log.JavaUtilLog in project winstone by jenkinsci.

the class Launcher method main.

/**
 * Main method. This basically just accepts a few args, then initialises the
 * listener thread. For now, just shut it down with a control-C.
 */
public static void main(String[] argv) throws IOException {
    // force java.util.logging for consistency & backward compatibility
    Log.setLog(new JavaUtilLog());
    Map args = getArgsFromCommandLine(argv);
    if (Option.USAGE.isIn(args) || Option.HELP.isIn(args)) {
        printUsage();
        return;
    }
    // Check for embedded war
    deployEmbeddedWarfile(args);
    // Check for embedded warfile
    if (!Option.WEBROOT.isIn(args) && !Option.WARFILE.isIn(args) && !Option.WEBAPPS_DIR.isIn(args)) {
        printUsage();
        return;
    }
    // Launch
    try {
        new Launcher(args);
    } catch (Throwable err) {
        err.printStackTrace();
        Logger.log(Logger.ERROR, RESOURCES, "Launcher.ContainerStartupError", err);
        System.exit(1);
    }
}
Also used : JavaUtilLog(org.eclipse.jetty.util.log.JavaUtilLog) Map(java.util.Map)

Aggregations

JavaUtilLog (org.eclipse.jetty.util.log.JavaUtilLog)2 Map (java.util.Map)1