custom method

void custom(
  1. List<SemiLogContent> contents, {
  2. String separator = ' ',
  3. dynamic hasHeader = true,
})

print a line with custom

Implementation

void custom(List<SemiLogContent> contents,
    {String separator = ' ', hasHeader = true}) {
  String msg = contents.map((e) => e.apply()).join(separator);
  if (hasHeader) {
    print('$_header $msg');
  } else {
    print(msg);
  }
}