Package pt.opensoft.logging

Examples of pt.opensoft.logging.Logger.warning()


    timer = new Timer(true);
    daemonTask = new DaemonTimerTask(daemon);

    Logger logger = daemon.getLogger();
    if (!daemon.canSchedule()) {
      logger.warning("NOT STARTED!");
      return;
    }
    boolean atFixedRate = daemon.hasFixedRate();
    if (daemon.hasStartAt()) {
      DateTime startAt = daemon.getStartAt();
View Full Code Here


      }
      logger.info("runOnceOnDelay(" + delay + ")");
      timer.schedule(daemonTask, daemon.getDelayMillis());
      return;
    }
    logger.warning("NOT SCHEDULED!");
    return;
  }

  public boolean stop () {
    daemonTask.cancel();
View Full Code Here

      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (tooLong) logger.push("too long");
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
    }
    return results;
View Full Code Here

            logger.push(count + " ROWS");
      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
    }
    return count;
View Full Code Here

      boolean tooLong = (_dbc.getThreshold() > 0 && timer.ellapsed() > _dbc.getThreshold());
            if (tooLong) logger.push("too long");
      if (ex != null) {
        logger.error(timer.ellapsed(), getSQLString() + " -> " + ex.getMessage());
      } else if (tooLong) {
        logger.warning(timer.ellapsed(), getSQLString());
      } else {
        logger.debug(timer.ellapsed(), getSQLString());
      }
    }
    return result;
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.