src/main/java/org/robotframework/remoteserver/RemoteServer.java
public static void configureLogging() {
        Logger root = Logger.getRootLogger();
        root.removeAllAppenders();
        BasicConfigurator.configure();
        root.setLevel(Level.INFO);
        org.eclipse.jetty.util.log.Log.setLog(new Jetty2Log4J());
        LogFactory.releaseAll();
        LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log",
                "org.apache.commons.logging.impl.Log4JLogger");
        log = LogFactory.getLog(RemoteServer.class);
    }
public static void configureLogging() {
        Logger root = Logger.getRootLogger();
        root.removeAllAppenders();
        BasicConfigurator.configure();
        root.setLevel(Level.INFO);
        org.eclipse.jetty.util.log.Log.setLog(new Jetty2Log4J());
        LogFactory.releaseAll();
        LogFactory.getFactory().setAttribute("org.apache.commons.logging.Log",
                "org.apache.commons.logging.impl.Log4JLogger");
        log = LogFactory.getLog(RemoteServer.class);
    }
public static void configureLogging ( ) { Logger root = Logger . getRootLogger ( ) ; root . removeAllAppenders ( ) ; BasicConfigurator . configure ( ) ; root . setLevel ( Level . INFO ) ; org . eclipse . jetty . util . log . Log . setLog ( new Jetty2Log4J ( ) ) ; LogFactory . releaseAll ( ) ; LogFactory . getFactory ( ) . setAttribute ( "org.apache.commons.logging.Log" , "org.apache.commons.logging.impl.Log4JLogger" ) ; log = LogFactory . getLog ( RemoteServer . class ) ; }
Configures logging systems used by <tt>RemoteServer</tt> and its
dependencies. Specifically,
<ul>
<li>Configure Log4J to log to the console</li>
<li>Set Log4J's log level to INFO</li>
<li>Redirect the Jetty's logging to Log4J</li>
<li>Set Jakarta Commons Logging to log to Log4J</li>
</ul>
This is convenient if you do not want to configure the logging yourself.
This will only affect future instances of
{@link org.eclipse.jetty.util.log.Logger} and
{@link org.apache.commons.logging.Log}, so this should be called as early
as possible.
Configures logging systems used by <tt > RemoteServer< / tt > and its dependencies . Specifically <ul > <li > Configure Log4J to log to the console< / li > <li > Set Log4J s log level to INFO< / li > <li > Redirect the Jetty s logging to Log4J< / li > <li > Set Jakarta Commons Logging to log to Log4J< / li > < / ul > This is convenient if you do not want to configure the logging yourself . This will only affect future instances of {