LogFileRotationPolicy.periodic constructor

const LogFileRotationPolicy.periodic(
  1. Duration period
)

LogFileRotationPolicy.periodic creates a period based rotation policy.

FileHandler with the policy will rotate a logging file each period.

Implementation

const factory LogFileRotationPolicy.periodic(Duration period) =
    _PeriodicLogFileRotationPolicy;