Package net.sourceforge.squirrel_sql.fw.util.log

Examples of net.sourceforge.squirrel_sql.fw.util.log.ILogger


      SquirrelAppender fa = new SquirrelAppender();
      initialize(fa, doStartupLogging);
    }
    catch (Exception e)
    {
      final ILogger log = createLogger(getClass());
      log.error("Error occured configuring logging. Now logging to standard output", e);
      BasicConfigurator.configure();
    }

  }
View Full Code Here


    }
    else
    {
      Logger.getRootLogger().removeAllAppenders();
      BasicConfigurator.configure(fa);
      final ILogger log = createLogger(getClass());
      if (log.isInfoEnabled()) {
        log.info("No logger configuration file passed on command line arguments. Using default log file: "
          + fa.getFile());
      }
    }
    if (doStartupLogging)
    {
View Full Code Here

    }
  }

  private void doStartupLogging()
  {
    final ILogger log = createLogger(getClass());
    log.info("#############################################################################################################");
    log.info("# Starting " + Version.getVersion() + " at " + DateFormat.getInstance().format(new Date()));
    log.info("#############################################################################################################");
    log.info(Version.getVersion() + " started: " + Calendar.getInstance().getTime());
    log.info(Version.getCopyrightStatement());
    log.info("java.vendor: " + System.getProperty("java.vendor"));
    log.info("java.version: " + System.getProperty("java.version"));
    log.info("java.runtime.name: " + System.getProperty("java.runtime.name"));
    log.info("os.name: " + System.getProperty("os.name"));
    log.info("os.version: " + System.getProperty("os.version"));
    log.info("os.arch: " + System.getProperty("os.arch"));
    log.info("user.dir: " + System.getProperty("user.dir"));
    log.info("user.home: " + System.getProperty("user.home"));
    log.info("java.home: " + System.getProperty("java.home"));
    log.info("java.class.path: " + System.getProperty("java.class.path"));
  }
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static void disableLogging(Class c)
  {
    ILogger s_log = LoggerController.createLogger(c);
    s_log.setLevel(Level.OFF);
  }
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected static void debugLogging(Class c)
  {
    ILogger s_log = LoggerController.createLogger(c);
    s_log.setLevel(Level.DEBUG);
  }
View Full Code Here

    protected void tearDown() throws Exception {
        super.tearDown();
    }
    @SuppressWarnings("unchecked")
    protected static void disableLogging(Class c) {
        ILogger s_log = LoggerController.createLogger(c);
        s_log.setLevel(Level.OFF);       
    }
View Full Code Here

        s_log.setLevel(Level.OFF);       
    }
   
    @SuppressWarnings("unchecked")
    protected static void debugLogging(Class c) {
        ILogger s_log = LoggerController.createLogger(c);
        s_log.setLevel(Level.DEBUG);       
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.fw.util.log.ILogger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.