Examples of WarnStatus


Examples of ch.qos.logback.core.status.WarnStatus

      URL url = urlByResourceName(sm, jndiEntryForConfigResource);
      if (url == null) {
        String msg = "The jndi resource [" + jndiEntryForConfigResource
                + "] for context [" + loggerContext.getName()
                + "] does not lead to a valid file";
        sm.add(new WarnStatus(msg, this));
      }
      return url;
    } else {
      String resourceByConvention = conventionalConfigFileName(loggerContext
              .getName());
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

  public void start() {
    if (fileName == null) {
      String jettyHomeProperty = OptionHelper.getSystemProperty("jetty.home");
      if (OptionHelper.isEmpty(jettyHomeProperty)) {
        getStatusManager().add(
                new WarnStatus("[jetty.home] system property not set.", this));
        fileName = DEFAULT_CONFIG_FILE;
      } else {
        fileName = jettyHomeProperty + File.separatorChar + DEFAULT_CONFIG_FILE;
      }
      getStatusManager().add(
              new WarnStatus("fileName property not set. Assuming [" + fileName
                      + "]", this));
    }
    File configFile = new File(fileName);
    if (configFile.exists()) {
      runJoranOnFile(configFile);
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

  }

  final void noAppenderDefinedWarning(final Logger logger) {
    if (noAppenderWarning++ == 0) {
      getStatusManager().add(
          new WarnStatus("No appenders present in context [" + getName()
              + "] for logger [" + logger.getName() + "].", logger));
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

      URL url = urlByResourceName(sm, jndiEntryForConfigResource);
      if (url == null) {
        String msg = "The jndi resource [" + jndiEntryForConfigResource
            + "] for context [" + loggerContext.getName()
            + "] does not lead to a valid file";
        sm.add(new WarnStatus(msg, this));
      }
      return url;
    } else {
      String resourceByConvention = conventionalConfigFileName(loggerContext
          .getName());
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

      URL url = urlByResourceName(sm, jndiEntryForConfigResource);
      if (url == null) {
        String msg = "The jndi resource [" + jndiEntryForConfigResource
                + "] for context [" + loggerContext.getName()
                + "] does not lead to a valid file";
        sm.add(new WarnStatus(msg, this));
      }
      return url;
    } else {
      String resourceByConvention = conventionalConfigFileName(loggerContext
              .getName());
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

  }

  final void noAppenderDefinedWarning(final Logger logger) {
    if (noAppenderWarning++ == 0) {
      getStatusManager().add(
              new WarnStatus("No appenders present in context [" + getName()
                      + "] for logger [" + logger.getName() + "].", logger));
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

    try {
      guard = true;

      if (!this.started) {
        if (statusRepeatCount++ < ALLOWED_REPEATS) {
          addStatus(new WarnStatus(
              "Attempted to append to non started appender [" + name + "].",
              this));
        }
        return;
      }
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

    } catch (IOException e) {
      sm.add(new ErrorStatus("Failed to get url list for resource [" + resourceName + "]",
              loggerContext, e));
    }
    if (urlSet != null && urlSet.size() > 1) {
      sm.add(new WarnStatus("Resource [" + resourceName + "] occurs multiple times on the classpath.",
              loggerContext));
      for (URL url : urlSet) {
        sm.add(new WarnStatus("Resource [" + resourceName + "] occurs at [" + url.toString() + "]",
                loggerContext));
      }
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

  public void addInfo(String msg, Throwable ex) {
    addStatus(new InfoStatus(msg, getDeclaredOrigin(), ex));
  }

  public void addWarn(String msg) {
    addStatus(new WarnStatus(msg, getDeclaredOrigin()));
  }
View Full Code Here

Examples of ch.qos.logback.core.status.WarnStatus

  public void addWarn(String msg) {
    addStatus(new WarnStatus(msg, getDeclaredOrigin()));
  }

  public void addWarn(String msg, Throwable ex) {
    addStatus(new WarnStatus(msg, getDeclaredOrigin(), ex));
  }
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.