Class RotateStrategyByDate

java.lang.Object
org.apache.log.output.io.rotate.RotateStrategyByDate
All Implemented Interfaces:
RotateStrategy

public class RotateStrategyByDate extends Object implements RotateStrategy
Rotation stragety based on SimpleDateFormat.
Version:
$Revision: 1.13 $ $Date: 2004/02/28 11:31:24 $
Author:
Avalon Development Team, Eung-ju Park
  • Field Details

  • Constructor Details

    • RotateStrategyByDate

      public RotateStrategyByDate()
      Creation of a new rotation strategy based on a date policy.
    • RotateStrategyByDate

      public RotateStrategyByDate(String pattern)
      Creation of a new rotation strategy based on a date policy using a supplied pattern.
      Parameters:
      pattern - the message formatting pattern
  • Method Details

    • reset

      public void reset()
      Reset the strategy.
      Specified by:
      reset in interface RotateStrategy
    • isRotationNeeded

      public boolean isRotationNeeded(String data, File file)
      Test is a rotation is required. Documentation pending ??
      Specified by:
      isRotationNeeded in interface RotateStrategy
      Parameters:
      data - not used
      file - not used
      Returns:
      TRUE if a rotation is required else FALSE