LogFileNameFormatter.weekly constructor

LogFileNameFormatter.weekly({
  1. String prefix = "log_",
  2. String postfix = ".txt",
})

Factory method to create weekly filename formatter with prefix and postfix

Implementation

factory LogFileNameFormatter.weekly(
    {String prefix = "log_", String postfix = ".txt"}) {
  return LogFileNameFormatter(filenameFormat: "$prefix$_dayFormat$postfix");
}