Examples of Level


Examples of org.apache.logging.log4j.Level

            source = new InputSource(new ByteArrayInputStream(buffer));
            DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
            Document document = builder.parse(source);
            rootElement = document.getDocumentElement();
            Map<String, String> attrs = processAttributes(rootNode, rootElement);
            Level status = Level.OFF;
            boolean verbose = false;

            for (Map.Entry<String, String> entry : attrs.entrySet()) {
                if ("status".equalsIgnoreCase(entry.getKey())) {
                    status = Level.toLevel(entry.getValue().toUpperCase(), Level.OFF);
View Full Code Here

Examples of org.apache.uima.util.Level

    Logger jsrLogger = java.util.logging.Logger.getLogger("org.apache.uima");
    while(jsrLogger.getLevel() == null) {
      jsrLogger = jsrLogger.getParent();
    }
       
    Level defaultLogLevel = logLevels.get(jsrLogger.getLevel().toString());
   
    // check message logging for root logger based on default log level
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.ALL), uimaLogger
            .isLoggable(Level.ALL));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.FINEST), uimaLogger
            .isLoggable(Level.FINEST));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.FINER), uimaLogger
            .isLoggable(Level.FINER));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.FINE), uimaLogger
            .isLoggable(Level.FINE));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.CONFIG), uimaLogger
            .isLoggable(Level.CONFIG));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.INFO), uimaLogger
            .isLoggable(Level.INFO));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.WARNING), uimaLogger
            .isLoggable(Level.WARNING));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.SEVERE), uimaLogger
            .isLoggable(Level.SEVERE));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.OFF), uimaLogger
            .isLoggable(Level.OFF));

    // check message logging for class logger based on default log level
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.ALL), classLogger
            .isLoggable(Level.ALL));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.FINEST), classLogger
            .isLoggable(Level.FINEST));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.FINER), classLogger
            .isLoggable(Level.FINER));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.FINE), classLogger
            .isLoggable(Level.FINE));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.CONFIG), classLogger
            .isLoggable(Level.CONFIG));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.INFO), classLogger
            .isLoggable(Level.INFO));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.WARNING), classLogger
            .isLoggable(Level.WARNING));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.SEVERE), classLogger
            .isLoggable(Level.SEVERE));
    Assert.assertEquals(defaultLogLevel.isGreaterOrEqual(Level.OFF), classLogger
            .isLoggable(Level.OFF));

    // reset class logger level to OFF
    // Logger.getLogger(this.getClass().getName()).setLevel(java.util.logging.Level.OFF);
    classLogger.setLevel(Level.OFF);
View Full Code Here

Examples of org.eluder.coveralls.maven.plugin.validation.ValidationError.Level

            return Collections.emptyList();
        }
        if (hasValue(job.getServiceName()) && hasValue(job.getServiceJobId())) {
            return Collections.emptyList();
        }
        Level level = (job.isDryRun() ? Level.WARN : Level.ERROR);
        String message = "Either repository token or service with job id must be defined";
        return Arrays.asList(new ValidationError(level, message));
    }
View Full Code Here

Examples of org.gbcpainter.game.levels.Level

  @NotNull
  @Override
  public Level loadLevel( @NotNull @NonNls final String name ) throws IllegalStateException, LevelNotFoundException, IOException, ParsingFailException {
    checkStartable();
    final Level result;
    try {
      result = doLoading( name );
    } catch ( Exception e ) {
      synchronized (acquireMutex()) {
        failException = e;
View Full Code Here

Examples of org.geotools.coverageio.jp2k.Granule.Level

        }
        
    final AbstractGridCoverage2DReader reader = new JP2KReader(file);
    final GeneralEnvelope envelope = reader.getOriginalEnvelope();
    final Granule granule = new Granule(new ReferencedEnvelope(envelope), file);
    final Level level = granule.getLevel(0);
    if (level != null){
      final AffineTransform btl = level.getBaseToLevelTransform();
        assertTrue(btl.isIdentity());
        final Rectangle bounds = level.getBounds();
        assertEquals(bounds.width, 400);
          assertEquals(bounds.height, 200);
        final int h = level.getHeight();
        final int w = level.getWidth();
        assertEquals(bounds.width, w);
          assertEquals(bounds.height, h);
         
        final double sx = level.getScaleX();
        final double sy = level.getScaleY();
        assertEquals(sx, 1.0, DELTA);
          assertEquals(sy, 1.0, DELTA);
          
        final String levelS = level.toString();
        if (TestData.isInteractiveTest()){
             if (LOGGER.isLoggable(java.util.logging.Level.INFO))
               LOGGER.info(levelS);
          }
      }
View Full Code Here

Examples of org.jboss.logging.Logger.Level

        List<String> logLines = FileUtils.readLines(logFile);
        for(String line : logLines) {
            if (! line.contains("RootLoggerTestCaseTST")) continue; // not our log
            String[] lWords = line.split(" +");
            try {
                Level lineLogLevel = Level.valueOf(lWords[1]);
                Level rootLogLevel = Level.valueOf(lWords[5]);
                int ll = levelOrd.get(lineLogLevel);
                int rl = levelOrd.get(rootLogLevel);
                assertTrue(ll <= rl);
                logFound[ll][rl] = true;
            } catch (Exception e) {
View Full Code Here

Examples of org.jpacman.framework.model.Level

   
  /**
   * Create a new UI for the default board.
   */
  public MainUI() {
    level = new Level();
   }
View Full Code Here

Examples of org.modeshape.common.logging.Logger.Level

    @Override
    public void writeTo( Logger logger ) {
        if (hasProblems()) {
            for (Problem problem : this) {
                Level level = logLevelFor(problem.getStatus());
                logger.log(level, problem.getMessage(), problem.getParameters());
            }
        }
    }
View Full Code Here

Examples of org.mongodb.morphia.mapping.validation.ConstraintViolation.Level

            }
        }

        if (!ve.isEmpty()) {
            final ConstraintViolation worst = ve.iterator().next();
            final Level maxLevel = worst.getLevel();
            if (maxLevel.ordinal() >= Level.FATAL.ordinal()) {
                throw new ConstraintViolationException(ve);
            }

            // sort by class to make it more readable
            final List<LogLine> l = new ArrayList<LogLine>();
View Full Code Here

Examples of org.objectweb.util.monolog.api.Level

    }

    // Check the monolog objects
    //==========================
    //------ Level ------//
    Level le = null;
    le = lef.getLevel("LOAD_DEBUG1");
    assertNotNull("level: LOAD_DEBUG1: undefined", le);
    assertEquals("level: LOAD_DEBUG1: bad int value",
      BasicLevel.DEBUG + 1,le.getIntValue());
    assertEquals("level: LOAD_DEBUG1: bad string expr",
      "DEBUG + 1", ((LevelImpl) le).getStringValue());

    le = lef.getLevel("LOAD_DEBUG2");
    assertNotNull("level: LOAD_DEBUG2: undefined", le);
    assertEquals("level: LOAD_DEBUG2: bad int value",
      BasicLevel.DEBUG + 2,le.getIntValue());
    assertEquals("level: LOAD_DEBUG2: bad string expr",
      String.valueOf(BasicLevel.DEBUG + 2),
      ((LevelImpl) le).getStringValue());

    //------ Handler ------//
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.