Package java.util.logging

Examples of java.util.logging.Level$LevelWarning


    return _isHelp;
  }

  private void setLogLevel(String levelName)
  {
    Level level = Level.INFO;

    if ("off".equals(levelName))
      level = Level.OFF;
    else if ("all".equals(levelName))
      level = Level.ALL;
View Full Code Here


  public static OLogManager instance() {
    return instance;
  }

  public Level setLevel(final String iLevel, final Class<? extends Handler> iHandler) {
    final Level level = iLevel != null ? Level.parse(iLevel.toUpperCase()) : Level.INFO;

    if (level.intValue() < minimumLevel.intValue()) {
      // UPDATE MINIMUM LEVEL
      minimumLevel = level;

      if (level.equals(Level.FINER) || level.equals(Level.FINE) || level.equals(Level.FINEST))
        debug = info = warn = error = true;
      else if (level.equals(Level.INFO)) {
        info = warn = error = true;
        debug = false;
      } else if (level.equals(Level.WARNING)) {
        warn = error = true;
        debug = info = false;
      } else if (level.equals(Level.SEVERE)) {
        error = true;
        debug = info = warn = false;
      }
    }
View Full Code Here

                    _nestedItems = items.iterator();
                    return hasNext();
                }
                else
                {
                    Level level = Level.FINE;
                    if (!FacesContext.getCurrentInstance().isProjectStage(ProjectStage.Production))
                    {
                        level = Level.WARNING;
                    }
View Full Code Here

        // If verbose output is enabled, update all the loggers in the S-Space
        // package logging tree to output at Level.FINE (normally, it is
        // Level.INFO).  This provides a more detailed view of how the execution
        // flow is proceeding.
        Level logLevel = null;
        if (options.hasOption("verbose"))
            logLevel = Level.FINE;
        else if (options.hasOption("veryVerbose"))
            logLevel = Level.FINER;
        if (logLevel != null)
View Full Code Here

    }
  }

  @Override
  protected void printSummary() {
    Level level = (getErrorCount() + getWarningCount() == 0) ?
        Level.INFO : Level.WARNING;
    if (getTypedPercent() > 0.0) {
      logger.log(level, "{0} error(s), {1} warning(s), {2,number,#.#}% typed",
          new Object[] {getErrorCount(), getWarningCount(), getTypedPercent()});
    } else {
View Full Code Here

  public void messageReceived(final ChannelHandlerContext ctx, final MessageEvent evt)
    throws Exception
  {
    final HttpRequest req = (HttpRequest)evt.getMessage();

    final Level level = Level.FINE;
    if (s_logger.isLoggable(level)) {
      final String content = req.getContent().toString(Charset.defaultCharset());

      final StringBuilder s = new StringBuilder();
      s.append(">");
View Full Code Here

  public void writeRequested(final ChannelHandlerContext ctx, final MessageEvent evt)
    throws Exception
  {
    final HttpResponse resp = (HttpResponse)evt.getMessage();

    final Level level = Level.FINE;
    if (s_logger.isLoggable(level)) {
      final StringBuilder s = new StringBuilder();
      s.append("<");
      s.append(resp.getStatus().getCode());
      s.append(" ");
View Full Code Here

    throws Exception
  {
    if (evt.getMessage() instanceof RtpPacket) {
      final RtpPacket packet = (RtpPacket)evt.getMessage();

      final Level level = getPacketLevel(packet);
      if (s_logger.isLoggable(level))
        s_logger.log(level, evt.getRemoteAddress() + "> " + packet.toString());
    }

    super.messageReceived(ctx, evt);
View Full Code Here

    throws Exception
  {
    if (evt.getMessage() instanceof RtpPacket) {
      final RtpPacket packet = (RtpPacket)evt.getMessage();

      final Level level = getPacketLevel(packet);
      if (s_logger.isLoggable(level))
        s_logger.log(level, evt.getRemoteAddress() + "< " + packet.toString());
    }

    super.writeRequested(ctx, evt);
View Full Code Here

        this.listener = new StreamTaskListener(getLogFile());

        channel = SeleniumProcessUtils.createSeleniumGridVM(listener);

        Level logLevel = Level.parse(getHubLogLevel());
        this.listener.getLogger().println("Starting Selenium Grid");

        List<String> args = new ArrayList<String>();
        if (getNewSessionWaitTimeout() != null && getNewSessionWaitTimeout() >= 0) {
            args.add("-newSessionWaitTimeout");
View Full Code Here

TOP

Related Classes of java.util.logging.Level$LevelWarning

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.