getActionStartLines static method

List<String> getActionStartLines(
  1. String action
)

The starting lines of an action to be added to the log file The output will include the name and time of the action

Implementation

static List<String> getActionStartLines(String action) {
  return [
    "** action start ********************",
    "-- Running : $action",
    "-- Time    : ${DateTime.now().toIso8601String()}",
    "-- detail start ---------------------",
  ];
}