Examples of ILogger


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

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

    }
    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

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

    }
  }

  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

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

  }

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

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

  }

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

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

    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

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

        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

Examples of org.eclipse.core.databinding.util.ILogger

  public void start(BundleContext context) throws Exception {
    _frameworkLogTracker = new ServiceTracker(context, FrameworkLog.class.getName(), null);
    _frameworkLogTracker.open();

    Policy.setLog(new ILogger() {

      public void log(IStatus status) {
        ServiceTracker frameworkLogTracker = _frameworkLogTracker;
        FrameworkLog log = frameworkLogTracker == null ? null : (FrameworkLog) frameworkLogTracker.getService();
        if (log != null) {
View Full Code Here

Examples of org.eclipse.jface.util.ILogger

      }
    });

    // Pass all errors and warnings to the status handling facility
    // and the rest to the main runtime log
    Policy.setLog(new ILogger() {
      public void log(IStatus status) {
        if (status.getSeverity() == IStatus.WARNING
            || status.getSeverity() == IStatus.ERROR) {
          StatusManager.getManager().handle(status);
        } else {
View Full Code Here

Examples of org.eclipse.wst.wsdl.validation.internal.logging.ILogger

  /**
   * Validate the files specified.
   */
  protected void validate()
  {
  ILogger logger = LoggerFactory.getInstance().getLogger();
 
  int numInvalid = 0;

  Iterator filesIter = wsdlFiles.iterator();
    while (filesIter.hasNext())
  {
    String wsdlFile = (String)filesIter.next();
    IValidationReport valReport = validateFile(wsdlFile);

    if(valReport.hasErrors())
    {
      numInvalid++;
      logger.log(MessageFormat.format(WSDLValidateTextUIMessages._UI_FILE_INVALID, new Object[]{wsdlFile}), ILogger.SEV_INFO);
      //logger.log(WSDLValidateTextUIMessages._UI_INFORMATION_DELIMITER, ILogger.SEV_ERROR);
      logger.log(getMessages(valReport.getValidationMessages()), ILogger.SEV_INFO);
    }
    else if(verbose)
    {
      logger.log(MessageFormat.format(WSDLValidateTextUIMessages._UI_FILE_VALID, new Object[]{wsdlFile}), ILogger.SEV_VERBOSE);
    }
  }
   
    // Log the summary.
    logger.log(MessageFormat.format(WSDLValidateTextUIMessages._UI_VALIDATION_SUMMARY, new Object[]{new Integer(wsdlFiles.size()), new Integer(numInvalid)}), ILogger.SEV_INFO);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.