Examples of RolloverFailure


Examples of ch.qos.logback.core.rolling.RolloverFailure

        addWarn("Failed to rename file ["+fromFile+"] to ["+toFile+"].");
        addWarn("Attempting to rename by copying.");
        renameByCopying(from, to);
      }
    } else {
      throw new RolloverFailure("File [" + from + "] does not exist.");
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

      if (!fromFile.delete()) {
        addInfo("Could not delete "+ from);
      }
    } catch (IOException ioe) {
      addError("Failed to rename file by copying", ioe);
      throw new RolloverFailure("Failed to rename file by copying");
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

        addWarn("Failed to rename file [" + fromFile + "] to [" + toFile + "].");
        addWarn("Attempting to rename by copying.");
        renameByCopying(from, to);
      }
    } else {
      throw new RolloverFailure("File [" + from + "] does not exist.");
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

      if (!fromFile.delete()) {
        addWarn("Could not delete " + from);
      }
    } catch (IOException ioe) {
      addError("Failed to rename file by copying", ioe);
      throw new RolloverFailure("Failed to rename file by copying");
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

  void createMissingTargetDirsIfNecessary(File toFile) throws RolloverFailure {
    if (FileUtil.isParentDirectoryCreationRequired(toFile)) {
      boolean result = FileUtil.createMissingParentDirectories(toFile);
      if (!result) {
        throw new RolloverFailure("Failed to create parent directories for ["
                + toFile.getAbsolutePath() + "]");
      }
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

        addWarn("Please consider leaving the [file] option of "+ RollingFileAppender.class.getSimpleName()+" empty.");
        addWarn("See also "+ RENAMING_ERROR_URL);

      }
    } else {
      throw new RolloverFailure("File [" + from + "] does not exist.");
    }
  }
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

      if (!fromFile.delete()) {
        addWarn("Could not delete " + from);
      }
    } catch (IOException ioe) {
      addError("Failed to rename file by copying", ioe);
      throw new RolloverFailure("Failed to rename file by copying");
    } finally {
      if(bis != null) {
        try {
          bis.close();
        } catch (IOException e) {
View Full Code Here

Examples of ch.qos.logback.core.rolling.RolloverFailure

  void createMissingTargetDirsIfNecessary(File toFile) throws RolloverFailure {
    if (FileUtil.isParentDirectoryCreationRequired(toFile)) {
      boolean result = FileUtil.createMissingParentDirectories(toFile);
      if (!result) {
        throw new RolloverFailure("Failed to create parent directories for ["
                + toFile.getAbsolutePath() + "]");
      }
    }
  }
View Full Code Here

Examples of org.apache.log4j.rolling.RolloverFailure

        getLogger().warn("Failed to rename file [{}] to [{}].", fromFile, toFile);
        getLogger().warn("Attemting to rename by copying.");
        renameByCopying(from, to);
      }
    } else {
      throw new RolloverFailure("File [" + from + "] does not exist.");
    }
  }
View Full Code Here

Examples of org.apache.log4j.rolling.RolloverFailure

      if (!fromFile.delete()) {
        getLogger().warn("Could not delete [].", from);
      }
    } catch (IOException ioe) {
      getLogger().error("Failed to rename file by copying", ioe);
      throw new RolloverFailure("Failed to rename file by copying");
    }
  }
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.