Package freenet.support

Examples of freenet.support.LoggerHookChain


    config.register("priorityDetail", "", 5, true, false, "LogConfigHandler.detaildPriorityThreshold",
        "LogConfigHandler.detaildPriorityThresholdLong",
        new StringCallback() {
          @Override
          public String get() {
            LoggerHookChain chain = Logger.getChain();
            return chain.getDetailedThresholds();
          }

          @Override
          public void set(String val) throws InvalidConfigValueException {
            LoggerHookChain chain = Logger.getChain();
            try {
              chain.setDetailedThresholds(val);
            } catch (InvalidThresholdException e) {
              throw new InvalidConfigValueException(e.getMessage());
            }
          }
        });
View Full Code Here


public class LoggingConfigHandler {
  private static class PriorityCallback extends StringCallback implements EnumerableOptionCallback {
    @Override
    public String get() {
      LoggerHookChain chain = Logger.getChain();
      return chain.getThresholdNew().name();
    }
View Full Code Here

      LoggerHookChain chain = Logger.getChain();
      return chain.getThresholdNew().name();
    }
    @Override
    public void set(String val) throws InvalidConfigValueException {
      LoggerHookChain chain = Logger.getChain();
      try {
        chain.setThreshold(val);
      } catch (LoggerHook.InvalidThresholdException e) {
        throw new OptionFormatException(e.getMessage());
      }
    }
View Full Code Here

TOP

Related Classes of freenet.support.LoggerHookChain

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.