Skip to content

Provide a Logger wrapper for write #817

@srawlins

Description

@srawlins

The Logger class is a great abstraction over dart:io stdout and stderr, but if I want to log some text without a newline, I cannot use Logger.

This means that I cannot catch such writes when mocking Logger with a fake Logger in tests.

Logger itself uses stdout.write in its indeterminate progress indicator (grep for stdout.write).

I think Logger should provide other commonly used methods from stdout, an IOSink, like write(), writeCharCode(), and writeln().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions