Package org.slf4j

Examples of org.slf4j.Logger.trace()


                  "Unhandled exception thrown by user code in task " + name, e);
              }

              if (log.isTraceEnabled())
              {
                log.trace("Finished with job: '{}'", code.toString());
              }

              // Sleep until the period is over (or not at all if it's
              // already passed)
              startOfPeriod.add(frequency).fromNow().sleep();
View Full Code Here


            javascriptLog.getLoggerName() == null ? logger : LoggerFactory.getLogger( javascriptLog.getLoggerName() );
        if ( javascriptLog.getMessage() == null )
        {
            return Boolean.TRUE;
        }
        toUse.trace( javascriptLog.getMessage() );
        return Boolean.TRUE;
    }

    public Boolean debug( JavascriptLog javascriptLog )
    {
View Full Code Here

    }

    protected void log() {
        Logger log = LoggerFactory.getLogger("TestLog");

        log.trace("test trace");
        log.debug("test debug");
        log.info("test info");
        log.warn("test warn");
        log.error("test error");
    }
View Full Code Here

    @Test
    public void log() {
        Logger log = LoggerFactory.getLogger(TestEnvTests.class);

        log.trace("trace message");
        log.debug("debug message");
        log.info("info message");
        log.warn("warn message");
        log.error("error message");
    }
View Full Code Here

            // Get the start of the current period
            final Time startOfPeriod = Time.now();

            if (log.isTraceEnabled())
            {
              log.trace("Run the job: " + code.toString());
            }

            try
            {
              // Run the user's code
View Full Code Here

              log.error("Unhandled exception thrown by user code in task " + name, e);
            }

            if (log.isTraceEnabled())
            {
              log.trace("Finished with job: " + code.toString());
            }

            // Sleep until the period is over (or not at all if it's
            // already passed)
            startOfPeriod.add(frequency).fromNow().sleep();
View Full Code Here

    try {
      String xml = this.getConfigInterface().getConfigItem(this.getConfigItemName());
      if (xml == null) {
        throw new ApsSystemException("Missing config item: " + this.getConfigItemName());
      } else {
        log.trace(this.getConfigItemName()+": " + xml);
        AbstractContentRelactionDOM catDom = this.getConfigDom(xml);
        this.setContentTypeElements(catDom.getContentTypes());
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadContentTypeCategory");
View Full Code Here

    try {
      ImageMapAttribute currentAttribute = this.getAttribute();
      currentAttribute.getImage().getResources().clear();
      currentAttribute.getImage().getTextMap().clear();
      currentAttribute.getAreas().clear();
      log.trace("Removed Image element from ImageMap " + currentAttribute.getName());
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "removeImage");
      return FAILURE;
    }
    return SUCCESS;
View Full Code Here

    this.getContentActionHelper().updateEntity(this.getContent(), this.getRequest());
    Logger log = ApsSystemUtils.getLogger();
    try {
      ImageMapAttribute currentAttribute = this.getAttribute();
      currentAttribute.addArea();
      log.trace("Added LinkedArea element to ImageMap " + currentAttribute.getName());
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addArea");
      return FAILURE;
    }
    return SUCCESS;
View Full Code Here

    try {
      int elementIndex = this.getElementIndex();
      ImageMapAttribute currentAttribute = this.getAttribute();
      if (elementIndex>=0 && elementIndex<currentAttribute.getAreas().size()) {
        currentAttribute.removeArea(elementIndex);
        log.trace("Removed LinkedArea element from ImageMap " + currentAttribute.getName());
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "removeArea");
      return FAILURE;
    }
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.