protected boolean isLogbackFileValid()

in src/main/java/org/apache/sling/commons/log/logback/internal/LogConfigManager.java [692:704]


    protected boolean isLogbackFileValid(@NotNull File file) {
        boolean valid = false;
        if (!file.exists()) {
            logger.warn("Logback configuration file [{}] does not exist", file.getAbsolutePath());
        } else if (!file.isFile()) {
            logger.warn("Logback configuration file [{}] is not a file", file.getAbsolutePath());
        } else if (!file.canRead()) {
            logger.warn("Logback configuration file [{}] cannot be read", file.getAbsolutePath());
        } else {
            valid = true;
        }
        return valid;
    }