We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useColor
colors
1 parent 2f1fb8d commit cae241aCopy full SHA for cae241a
lib/src/printers/simple_printer.dart
@@ -27,10 +27,10 @@ class SimplePrinter extends LogPrinter {
27
Level.wtf: AnsiColor.fg(199),
28
};
29
30
- bool printTime;
31
- bool useColor;
+ final bool printTime;
+ final bool colors;
32
33
- SimplePrinter({this.printTime = false, this.useColor = true});
+ SimplePrinter({this.printTime = false, this.colors = true});
34
35
@override
36
List<String> log(LogEvent event) {
@@ -44,7 +44,7 @@ class SimplePrinter extends LogPrinter {
44
var prefix = levelPrefixes[level];
45
var color = levelColors[level];
46
47
- return useColor ? color(prefix) : prefix;
+ return colors ? color(prefix) : prefix;
48
}
49
50
String _stringifyMessage(dynamic message) {
0 commit comments