Package org.apache.uima.util

Examples of org.apache.uima.util.Logger


  }

  public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
          String msgKey, Object[] params) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null && logger.isLoggable(level)) {
        String result = I18nUtil.localizeMessage(bundleName, msgKey, params,
                getExtensionClassLoader());
        logger.log(getClass().getName(), level, result, null);
      }
    }
  }
View Full Code Here


  }

  public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName,
          String msgKey, Throwable thrown) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null && logger.isLoggable(level)) {
        String result = I18nUtil.localizeMessage(bundleName, msgKey, null,
                getExtensionClassLoader());
        logger.log(getClass().getName(), level, result, thrown);
      }
    }
  }
View Full Code Here

    }
  }

  public void log(String wrapperFQCN, Level level, String message, Throwable thrown) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        context.getLogger().log(wrapperFQCN, level, message, thrown);
      }
    }
  }
View Full Code Here

    }
  }

  public boolean isLoggable(Level level) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        return context.getLogger().isLoggable(level);
      }
    }
    return false;
View Full Code Here

   * @param paramObject
   *          a message.
   */
  public void debug(Object paramObject) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        context.getLogger()
                .log(getClass().getName(), Level.FINE, String.valueOf(paramObject), null);
      }
    }
View Full Code Here

   * @param paramThrowable
   *          a cause.
   */
  public void debug(Object paramObject, Throwable paramThrowable) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        context.getLogger().log(getClass().getName(), Level.FINE, String.valueOf(paramObject),
                paramThrowable);
      }
    }
View Full Code Here

   * @param paramObject
   *          a message.
   */
  public void error(Object paramObject) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        context.getLogger().log(getClass().getName(), Level.SEVERE, String.valueOf(paramObject),
                null);
      }
    }
View Full Code Here

   * @param paramThrowable
   *          a cause.
   */
  public void error(Object paramObject, Throwable paramThrowable) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        context.getLogger().log(getClass().getName(), Level.SEVERE, String.valueOf(paramObject),
                paramThrowable);
      }
    }
View Full Code Here

   * @param paramObject
   *          a message.
   */
  public void info(Object paramObject) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        if (context.getLogger() instanceof JSR47Logger_impl) {
          JSR47Logger_impl impl = (JSR47Logger_impl) context.getLogger();
        }
        context.getLogger()
View Full Code Here

   * @param paramThrowable
   *          a cause.
   */
  public void info(Object paramObject, Throwable paramThrowable) {
    if (context != null) {
      Logger logger = context.getLogger();
      if (logger != null) {
        context.getLogger().log(getClass().getName(), Level.INFO, String.valueOf(paramObject),
                paramThrowable);
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.uima.util.Logger

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.