Package org.apache.log4j

Examples of org.apache.log4j.RollingCalendar


      qw = new CountingQuietWriter(writer, errorHandler);
  }

  //Taken verbatum from DailyRollingFileAppender
  int computeCheckPeriod() {
    RollingCalendar c = new RollingCalendar();
    // set sate to 1970-01-01 00:00:00 GMT
    Date epoch = new Date(0);
    if(datePattern != null) {
      for(int i = TOP_OF_MINUTE; i <= TOP_OF_MONTH; i++) {
        String r0 = sdf.format(epoch);
        c.setType(i);
        Date next = new Date(c.getNextCheckMillis(epoch));
        String r1 = sdf.format(next);
        //LogLog.debug("Type = "+i+", r0 = "+r0+", r1 = "+r1);
        if(r0 != null && r1 != null && !r0.equals(r1)) {
          return i;
        }
View Full Code Here


      qw = new CountingQuietWriter(writer, errorHandler);
  }

  //Taken verbatum from DailyRollingFileAppender
  int computeCheckPeriod() {
    RollingCalendar c = new RollingCalendar();
    // set sate to 1970-01-01 00:00:00 GMT
    Date epoch = new Date(0);
    if(datePattern != null) {
      for(int i = TOP_OF_MINUTE; i <= TOP_OF_MONTH; i++) {
        String r0 = sdf.format(epoch);
        c.setType(i);
        Date next = new Date(c.getNextCheckMillis(epoch));
        String r1 = sdf.format(next);
        //LogLog.debug("Type = "+i+", r0 = "+r0+", r1 = "+r1);
        if(r0 != null && r1 != null && !r0.equals(r1)) {
          return i;
        }
View Full Code Here

      qw = new CountingQuietWriter(writer, errorHandler);
  }

  //Taken verbatum from DailyRollingFileAppender
  int computeCheckPeriod() {
    RollingCalendar c = new RollingCalendar();
    // set sate to 1970-01-01 00:00:00 GMT
    Date epoch = new Date(0);
    if(datePattern != null) {
      for(int i = TOP_OF_MINUTE; i <= TOP_OF_MONTH; i++) {
        String r0 = sdf.format(epoch);
        c.setType(i);
        Date next = new Date(c.getNextCheckMillis(epoch));
        String r1 = sdf.format(next);
        //LogLog.debug("Type = "+i+", r0 = "+r0+", r1 = "+r1);
        if(r0 != null && r1 != null && !r0.equals(r1)) {
          return i;
        }
View Full Code Here

TOP

Related Classes of org.apache.log4j.RollingCalendar

Copyright © 2018 www.massapicom. 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.