diff --git a/README.md b/README.md index c149d20..ba68428 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ [![Code size](https://img.shields.io/github/languages/code-size/Bungeefan/logger?logo=github&logoColor=white)](https://github.com/Bungeefan/logger) [![License](https://img.shields.io/github/license/Bungeefan/logger?logo=open-source-initiative&logoColor=green)](https://github.com/Bungeefan/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. 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, ); }