prepareHeader method Null safety

  1. @override
String prepareHeader(
  1. ArgResults command,
  2. String log,
  3. LinioOptions options
)
override

Implementation

@override
String prepareHeader(ArgResults command, String log, LinioOptions options) {
  switch (options.level) {
    case LinioLogLevel.debug:
      return "[DEBUG] $log";
    case LinioLogLevel.info:
      return "[INFO ] $log";
    case LinioLogLevel.warn:
      return "[WARN ] $log";
    case LinioLogLevel.error:
      return "[ERROR] $log";
    case LinioLogLevel.fatal:
      return "[FATAL] $log";
  }
}