Package org.slf4j

Examples of org.slf4j.Logger.trace()


              // 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

            // 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

          } catch (Exception e) {
            logger.debug(e.getMessage());
            logger.debug(Utils.getStackTrace(e));
        }

        logger.trace( "Request packet sent to: {} Interface: {}", broadcast.getHostAddress(),  networkInterface.getDisplayName());
      }
    }

    logger.trace( "Done looping over all network interfaces. Now waiting for a reply!");
    bcSend.close();
View Full Code Here

        logger.trace( "Request packet sent to: {} Interface: {}", broadcast.getHostAddress(),  networkInterface.getDisplayName());
      }
    }

    logger.trace( "Done looping over all network interfaces. Now waiting for a reply!");
    bcSend.close();

    DatagramSocket bcReceipt = new DatagramSocket(23272);
    bcReceipt.setReuseAddress(true);
View Full Code Here

    byte[] recvBuf = new byte[15000];
    DatagramPacket receivePacket = new DatagramPacket(recvBuf, recvBuf.length);
    bcReceipt.receive(receivePacket);

    //We have a response
    logger.trace( "Broadcast response from server: {}", receivePacket.getAddress());

    //Check if the message is correct
    String message = new String(receivePacket.getData()).trim();

    if (message.startsWith("eQ3Max")) {
View Full Code Here

      maxCubeName=message.substring(0, 8);
      rfAddress=message.substring(8, 18);
      logger.debug("Found at: {}", maxCubeIP);
      logger.debug("Name    : {}", maxCubeName);
      logger.debug("Serial  : {}", rfAddress);
      logger.trace("Message : {}", message)
    } else {
      logger.info("No Max!Cube gateway found on network");
    }

    //Close the port!
View Full Code Here

    public void testTrace() {
        Logger mock =
            createStrictMock(Logger.class);

        expect(mock.getName()).andReturn("foo");
        mock.trace("a");
        replay(mock);

        InternalLogger logger = new Slf4JLogger(mock);
        logger.trace("a");
        verify(mock);
View Full Code Here

    public void testTraceWithException() {
        Logger mock =
            createStrictMock(Logger.class);

        expect(mock.getName()).andReturn("foo");
        mock.trace("a", e);
        replay(mock);

        InternalLogger logger = new Slf4JLogger(mock);
        logger.trace("a", e);
        verify(mock);
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.