Package org.slf4j

Examples of org.slf4j.Logger.trace()


            case LogService.LOG_ERROR:
                log.error(message, exception);
                break;
            default:
                if (logEntry.getLevel() > LogService.LOG_DEBUG) {
                    log.trace(message, exception);
                } else if (logEntry.getLevel() < LogService.LOG_ERROR) {
                    log.error(message, exception);
                }
                break;
        }
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

                  "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

    public void testXPathNamespaceTracingEnabledJavaDSL() throws Exception {
        Logger l = createNiceMock(Logger.class);

        expect(l.isTraceEnabled()).andReturn(true).anyTimes();

        l.trace(contains("Namespaces discovered in message"), anyObject());
        expectLastCall().times(1);
        replay(l);

        String body = "<aRoot xmlns:nsa=\"http://namespacec.net\"><nsa:a xmlns:nsa=\"http://namespacea.net\">Hello|there|Camel</nsa:a>"
                + "<nsb:a xmlns:nsb=\"http://namespaceb.net\">Hello|there|Camel</nsb:a><nsb:a xmlns:nsb=\"http://namespaceb.net\">Hello|there|Camel</nsb:a>"
View Full Code Here

        Logger l = createNiceMock(Logger.class);

        expect(l.isTraceEnabled()).andReturn(true).anyTimes();

        Capture<String> captures = new Capture<String>(CaptureType.ALL);
        l.trace(capture(captures), anyObject());
        expectLastCall().anyTimes();

        replay(l);

        String body = "<aRoot xmlns:nsa=\"http://namespacec.net\"><nsa:a xmlns:nsa=\"http://namespacea.net\">Hello|there|Camel</nsa:a>"
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);
              }

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

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

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

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

     */
    public static SparqlFieldQuery getSparqlFieldQuery(FieldQuery parsedQuery) {
        Logger logger = LoggerFactory.getLogger(SparqlFieldQueryFactory.class);

        if (parsedQuery == null) {
            logger.trace("Parsed query is null.");
            return null;
        } else if (parsedQuery instanceof SparqlFieldQuery) {
            logger.trace("Parsed query is a [SparqlFieldQuery].");
            return (SparqlFieldQuery) parsedQuery;
        } else {
View Full Code Here

        if (parsedQuery == null) {
            logger.trace("Parsed query is null.");
            return null;
        } else if (parsedQuery instanceof SparqlFieldQuery) {
            logger.trace("Parsed query is a [SparqlFieldQuery].");
            return (SparqlFieldQuery) parsedQuery;
        } else {
            logger.trace("Parsed query is a [{}].", parsedQuery.getClass().toString());
            return parsedQuery.copyTo(new SparqlFieldQuery());
        }
View Full Code Here

            return null;
        } else if (parsedQuery instanceof SparqlFieldQuery) {
            logger.trace("Parsed query is a [SparqlFieldQuery].");
            return (SparqlFieldQuery) parsedQuery;
        } else {
            logger.trace("Parsed query is a [{}].", parsedQuery.getClass().toString());
            return parsedQuery.copyTo(new SparqlFieldQuery());
        }
    }

}
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.