logging: provide LogRecord formatting #12030
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @seaneagan
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)
The text was updated successfully, but these errors were encountered: