From 69fd2824c629726e516a7dfff41768cf38fdd61f Mon Sep 17 00:00:00 2001 From: Harm Aarts Date: Sat, 11 Feb 2023 13:44:22 +0100 Subject: [PATCH 1/2] Update canonical repo --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 82c7acd..b4357ad 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ [![Code size](https://img.shields.io/github/languages/code-size/leisim/logger?logo=github&logoColor=white)](https://github.com/leisim/logger) [![License](https://img.shields.io/github/license/leisim/logger?logo=open-source-initiative&logoColor=green)](https://github.com/leisim/logger/blob/master/LICENSE) + +NOTICE: This repo is NOT LONGER leading! The new repo is here: https://github.com/Bungeefan/logger + Small, easy to use and extensible logger which prints beautiful logs.
Inspired by [logger](https://github.com/orhanobut/logger) for Android. From a635cbd5a7d5724f2aa1f3ecc34ce6b4af7377c1 Mon Sep 17 00:00:00 2001 From: shirne Date: Fri, 15 Apr 2022 17:12:39 +0800 Subject: [PATCH 2/2] force the foreground color to white for the error background --- lib/src/printers/pretty_printer.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/printers/pretty_printer.dart b/lib/src/printers/pretty_printer.dart index 3c28870..bf2cc74 100644 --- a/lib/src/printers/pretty_printer.dart +++ b/lib/src/printers/pretty_printer.dart @@ -25,6 +25,7 @@ class PrettyPrinter extends LogPrinter { static const doubleDivider = '─'; static const singleDivider = '┄'; + static final whiteColor = AnsiColor.fg(255); static final levelColors = { Level.verbose: AnsiColor.fg(AnsiColor.grey(0.5)), Level.debug: AnsiColor.none(), @@ -312,8 +313,7 @@ class PrettyPrinter extends LogPrinter { for (var line in error.split('\n')) { buffer.add( color(verticalLineAtLevel) + - errorColor.resetForeground + - errorColor(line) + + errorColor(whiteColor(line)) + errorColor.resetBackground, ); }