Package org.apache.log4j

Examples of org.apache.log4j.Priority.toInt()


  /**
   *  Return the current Level of the logger
   */
  public int getCurrentIntLevel() {
    Priority p = category.getPriority();
    return (p==null ? BasicLevel.INHERIT : p.toInt());
  }

  public Level getCurrentLevel() {
    Priority p = category.getPriority();
    return (p==null
View Full Code Here


  public Level getCurrentLevel() {
    Priority p = category.getPriority();
    return (p==null
      ? BasicLevel.LEVEL_INHERIT
      : LevelImpl.getLevel(p.toInt()) );
  }

  /**
   * Check if the level parameter are not filtered by the logger
   */
 
View Full Code Here

        return (NSArray)applicableLevels.valueForKey("level");
    }

    public LoggerLevel currentAppenderLevel() {
        Priority threshold = anAppender.getThreshold();
        return LoggerLevel.loggerLevelForLog4JLevel(threshold != null ? Level.toLevel(threshold.toInt()) : null);
    }

    public void setCurrentAppenderLevel(LoggerLevel loggerLevel) {
        anAppender.setThreshold(loggerLevel.level());
    }
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.