Package java.util.logging

Examples of java.util.logging.Logger.config()


      // add any such Loggers to a list of unconfigured ones and revisit
      // them upon the manager's configuration.
      if (!configured && (result instanceof TransactionalLogger)) {
                unconfiguredLoggers.add((TransactionalLogger) result);
            } else {
    result.config("This logger now has transactional semantics");
      }

      // this call is necessary to install all the handlers associated
      // with the Logger.
      addLogger(result);
View Full Code Here


        }
        lowLevelHttpRequest.setContent(content);
      }
      // log from buffer
      if (loggable) {
        logger.config(logbuf.toString());
        if (curlbuf != null) {
          curlbuf.append(" -- ");
          curlbuf.append(urlString);
          if (content != null) {
            curlbuf.append(" << $$$");
View Full Code Here

          curlbuf.append(" -- ");
          curlbuf.append(urlString);
          if (content != null) {
            curlbuf.append(" << $$$");
          }
          logger.config(curlbuf.toString());
        }
      }

      // We need to make sure our content type can support retry
      // null content is inherently able to be retried
View Full Code Here

    this.contentType = contentType;
    mediaType = contentType == null ? null : new HttpMediaType(contentType);

    // log from buffer
    if (loggable) {
      logger.config(logbuf.toString());
    }
  }

  /**
   * Returns the limit to the content size that will be logged during {@link #getContent()}.
View Full Code Here

//      DEFAULT_LOG_HANDLER.setLevel(DEFAULT_LOG_LEVEL);
      // test the logger to verify permissions are OK
      Logger logger = Logger.getLogger(WikiLogger.class.getName());
//      logger.addHandler(WikiLogger.DEFAULT_LOG_HANDLER);
      logger.setLevel(DEFAULT_LOG_LEVEL);
      logger.config("JAMWiki log initialized from " + propertyFile.getPath() + " with pattern " + pattern);
    } catch (Exception e) {
      System.out.println("WARNING: Unable to load custom JAMWiki logging configuration, using system default " + e.getMessage());
//      WikiLogger.DEFAULT_LOG_HANDLER = null;
    } finally {
      if (stream != null) {
View Full Code Here

            if(null!=debugTuningString) {
                _debugReplicationTuning = (new Boolean (debugTuningString).booleanValue());
            }

            if (_logger.isLoggable(Level.CONFIG)) {
                _logger.config("DEBUG_REPLICATION_SENDER_TUNING=" + _debugReplicationTuning);
            }
        } catch(Throwable t) {
            _logger.log(Level.WARNING, "handled exception while configuring _debugReplicationTuning=" + _debugReplicationTuning +
                                       " DEBUG_REPLICATION_SENDER_TUNING=" + debugTuningString, t);
        }
View Full Code Here

        lowLevelHttpRequest.setContentLength(contentLength);
        lowLevelHttpRequest.setStreamingContent(streamingContent);
      }
      // log from buffer
      if (loggable) {
        logger.config(logbuf.toString());
        if (curlbuf != null) {
          curlbuf.append(" -- '");
          curlbuf.append(urlString.replaceAll("\'", "'\"'\"'"));
          curlbuf.append("'");
          if (streamingContent != null) {
View Full Code Here

          curlbuf.append(urlString.replaceAll("\'", "'\"'\"'"));
          curlbuf.append("'");
          if (streamingContent != null) {
            curlbuf.append(" << $$$");
          }
          logger.config(curlbuf.toString());
        }
      }

      // We need to make sure our content type can support retry
      // null content is inherently able to be retried
View Full Code Here

      // add any such Loggers to a list of unconfigured ones and revisit
      // them upon the manager's configuration.
      if (!configured && (result instanceof TransactionalLogger)) {
                unconfiguredLoggers.add((TransactionalLogger) result);
            } else {
    result.config("This logger now has transactional semantics");
      }

      // this call is necessary to install all the handlers associated
      // with the Logger.
      addLogger(result);
View Full Code Here

        String notSpecifiedString = "(not specified)";
        String noneSpecifiedString = "(none specified)";
       
        Options jFitOptions = commandLineOptions.getJFitOptions();
       
        commandLineLogger.config("Specified options: ");
       
        ModuleName moduleName = jFitOptions.getModuleName();
        commandLineLogger.config("  Module name:    " + (moduleName == null ? notSpecifiedString : moduleName.toSourceText()));
       
        String workspaceName = commandLineOptions.getWorkspaceName();
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.