Class RollingPolicyBase

    • Field Detail

      • fileNamePatternStr

        protected java.lang.String fileNamePatternStr
    • Constructor Detail

      • RollingPolicyBase

        public RollingPolicyBase()
    • Method Detail

      • determineCompressionMode

        protected void determineCompressionMode()
        Given the FileNamePattern string, this method determines the compression mode depending on last letters of the fileNamePatternStr. Patterns ending with .gz imply GZIP compression, endings with '.zip' imply ZIP compression. Otherwise and by default, there is no compression.
      • setFileNamePattern

        public void setFileNamePattern​(java.lang.String fnp)
      • getFileNamePattern

        public java.lang.String getFileNamePattern()
      • start

        public void start()
        Specified by:
        start in interface LifeCycle
      • stop

        public void stop()
        Specified by:
        stop in interface LifeCycle
      • setParent

        public void setParent​(FileAppender<?> appender)
        Description copied from interface: RollingPolicy
        This method allows RollingPolicy implementations to be aware of their containing appender.
        Specified by:
        setParent in interface RollingPolicy
      • isParentPrudent

        public boolean isParentPrudent()
      • getParentsRawFileProperty

        public java.lang.String getParentsRawFileProperty()