LogFileNameFormatter.daily constructor

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

Factory method to create daily filename formatter with prefix and postfix

Implementation

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