Interface RotationHooks

  • All Known Implementing Classes:
    RotationHooks.NoOpRotatationHooks

    public interface RotationHooks
    Callback hooks to allow custom action to be taken before and after file rotation occurs.
    • Method Detail

      • postRotationAction

        void postRotationAction​(RotationContext context)
                         throws IOException
        Method to run an action just after file has been rotated.
        Parameters:
        context - The rotation context.
        Throws:
        IOException - If the post action fails.
      • preRotationAction

        void preRotationAction​(RotationContext context)
                        throws IOException
        Method to run an action just before file will be rotated.
        Parameters:
        context - The rotation context.
        Throws:
        IOException - If the pre action fails.