LogFileNameFormatter.hourly constructor

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

Factory method to create hourly filename formatter with prefix and postifx.

Implementation

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