LogFileNameFormatter.full constructor

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

Factory method to create date and time filename formatter with prefix and postfix.

Implementation

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