Examples of Level


Examples of java.util.logging.Level

         String className = event.getLocationInformation().getClassName();
         String method = event.getLocationInformation().getMethodName();
         String line =  event.getLocationInformation().getLineNumber();
         org.apache.log4j.Level level = event.getLevel();
        
         Level javaLevel = mapLevel(level);
         log.logp(javaLevel, className, method + line, event.getMessage().toString());
      }
      catch (Throwable ex) {
         ex.printStackTrace();
      }
View Full Code Here

Examples of java.util.logging.Level

      else {
      */
      if ("logging".equals(type)) {
         String value = (values != null && values.length > 0) ? values[0] : "INFO";
         log.info("Changed property '" + key + "' to " + value);
         Level level = Level.parse(value);
         this.glob.changeLogLevel(key, level);
         return value;
      }
      else {
         try {
View Full Code Here

Examples of java.util.logging.Level

    }
  }

  private void setLog(String value) {
    if (value == null) {
      Level currentLevel = jdkRootLogger.getLevel();
      String levelString = currentLevel.getName();

      for (Map.Entry<String, Level> entry : LOG_LEVELS.entrySet()) {
        if (entry.getValue().equals(currentLevel)) {
          levelString = entry.getKey();
          break;
        }
      }

      writeln("log: " + levelString);
    }
    else {
      Level logLevel = LOG_LEVELS.get(value.toLowerCase());

      if (logLevel != null) {
        jdkRootLogger.setLevel(logLevel);
      }
      else {
View Full Code Here

Examples of java.util.logging.Level

      //if (Logger.LOG_WARN != level && LogChannel.LOG_ERROR != level)
      //   return;

      if (record == null) return;
      if (this.loggingSet == null) return;
      Level level = record.getLevel();
      String source = record.getSourceClassName()+"."+record.getSourceMethodName();
      String str = record.getMessage();
      String found = (Level.WARNING.equals(level)) ? "logging/warning/" : "logging/severe/";
      String foundEvent = found + "*"; // "logging/warning/*"
      if (!this.loggingSet.contains(foundEvent))
         return;
      // How to extract the Logger name like "core"?

      try {
         if (source == null) source = "";
         String description = (str == null) ? "" : str;

         String summary =
             "[" + new java.sql.Timestamp(record.getMillis()).toString()
           + " " + level.toString()
           + " " + Thread.currentThread().getName()
           + " " + source + "]";

         String eventType = foundEvent;

View Full Code Here

Examples of javax.slee.facilities.Level

    public boolean isNotificationEnabled(Notification notification) {
        if (!(notification instanceof AlarmNotification)) return false;

        if (minLevel_10 != null) {
            // SLEE 1.0 comparison
            Level alarmLevel = ((AlarmNotification)notification).getLevel();
            return alarmLevel != null && !minLevel_10.isHigherLevel(alarmLevel);
        }
        else {
            // SLEE 1.1 comparison
            AlarmLevel alarmLevel = ((AlarmNotification)notification).getAlarmLevel();
View Full Code Here

Examples of m33.Comp08.Level

    // Toolkit tk = Toolkit.getDefaultToolkit();
    // levelImg = tk.getImage(loader.getURL("level1.png"));
  }

  public void loadLevel(EntityManager em) {
    level1 = new Level(em);
    loaded = true;

    double milli = System.currentTimeMillis();

    tm.newLevel(level1);
View Full Code Here

Examples of mondrian.olap.Level

      if (hierarchyOrder != 0)
      {
        return hierarchyOrder;
      }

      Level level1 = o1.getLevel();
      Level level2 = o2.getLevel();
      int levelOrder = Integer.compare(level1.getDepth(), level2.getDepth());
      if (levelOrder != 0)
      {
        return levelOrder;
      }
      return o1.getLevel().getUniqueName().compareTo(o2.getLevel().getUniqueName());
View Full Code Here

Examples of net.sf.logsaw.core.field.Level

   * @see net.sf.logsaw.core.field.ALogEntryField#fromIndexedValue(java.lang.String)
   */
  @Override
  public Level fromIndexedValue(String str) {
    Assert.isNotNull(str, "str"); //$NON-NLS-1$
    Level lvl = levelProvider.findLevel(Integer.parseInt(str));
    if (lvl != null) {
      return lvl;
    }
    return null;
  }
View Full Code Here

Examples of oracle.AWXML.Level

    // Create the Attribute, Level, and Hierarchy objects for the Dimension.
    this.createTimeDim(timeDim);

    // Get the detail level to use when creating a Cube.
    Vector _time_levels = timeDim.getLevels();
    Level monthLevel = (Level)_time_levels.elementAt(0);

    // Create the CUSTOMER_AW Dimension and set names for the object.
    Dimension customerDim = globalAW.createDimension();
    customerDim.setName("CUSTOMER_AW");
    customerDim.setShortName("CUSTOMER_AW");
    customerDim.setLongName("CUSTOMER_AW dimension");

    // Create the Attribute, Level, and Hierarchy objects for the Dimension.
    this.createCustomerDim(customerDim);

    // Get the detail level to use when creating a Cube.
    Vector customerDim_levels = customerDim.getLevels();
    Level shipToLevel = (Level)customerDim_levels.elementAt(0);

    // Create the PRODUCT_AW Dimension and set names for the object.
    Dimension productDim = globalAW.createDimension();
    productDim.setName("PRODUCT_AW");
    productDim.setShortName("PRODUCT_AW");
    productDim.setLongName("PRODUCT_AW Dimension");

    // Create the Attribute, Level, and Hierarchy objects for the Dimension.
    this.createProductDim(productDim);

    // Get the detail level to use when creating a Cube.
    Vector productDim_levels = productDim.getLevels();
    Level itemLevel = (Level)productDim_levels.elementAt(0);

    // Create the CHANNEL_AW Dimension and set names for the object.
    Dimension channelDim = globalAW.createDimension();
    channelDim.setName("CHANNEL_AW");
    channelDim.setShortName("CHANNEL_AW");
    channelDim.setLongName("CHANNEL_AW dimension");

    // Create the Attribute, Level, and Hierarchy objects for the Dimension.
    this.createChannelDimension(channelDim);

    // Get the detail level, which is shared by all dimension hierarchies,
    // to use when creating a Cube.
    Vector _channel_levels = channelDim.getLevels();
    Level channelLevel = (Level)_channel_levels.elementAt(0);

    // Create the UNITS_CUBE_AW Cube and the measures to associate with it.
    this.clearCubeMapVectors();
    Cube unitsCube = globalAW.createCube();
    unitsCube.setName("UNITS_CUBE_AW");
View Full Code Here

Examples of org.apache.blur.thrift.generated.Level

    if (args.length != 4) {
      throw new CommandException("Invalid args: " + help());
    }

    Iface clientToNode = BlurClient.getClient(args[1]);
    Level level = Level.valueOf(args[2].toUpperCase().trim());
    String classNameOrLoggerName = args[3].trim();
    if (classNameOrLoggerName.equals("ROOT")) {
      clientToNode.logging(null, level);
    } else {
      clientToNode.logging(classNameOrLoggerName, 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.