TestLogger constructor

TestLogger(
  1. String name
)

Creates a TestLogger and configures it with a CaptureSink.

Implementation

TestLogger(this.name) {
  Logger.configure(
    name,
    handlers: [
      Handler(
        formatter: const PlainFormatter(),
        sink: sink,
      ),
    ],
  );
}