Skip to content

logging: provide LogRecord formatting #416

@DartBot

Description

@DartBot

<img src="https://avatars.githubusercontent.com/u/444270?v=3" align="left" width="96" height="96"hspace="10"> Issue by seaneagan
Originally opened as dart-lang/sdk#12030


The logging package should provide support for converting LogRecords into Strings.

In Java's logback these are called Layouts:

http://logback.qos.ch/manual/layouts.html

For example:

class LogFormat {
  String format(LogRecord record);
}

Then can use it like so:

logger.onRecord.map(logFormat.format)

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