File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,15 @@ var logger = Logger(
89
89
)
90
90
```
91
91
92
+ ### Auto detecting
92
93
93
- You can try to auto detect if the attached terminal supports ANSI escape
94
- characters by using the output of ` io.stdout.supportsAnsiEscapes ` as value for
95
- the ` colors ` argument (assuming you have imported the ` io ` package with ` import 'dart:io' as io; ` ).
94
+ With the ` io ` package you can auto detect the ` lineLength ` and ` colors ` arguments.
95
+ Assuming you have imported the ` io ` package with ` import 'dart:io' as io; ` you
96
+ can auto detect ` colors ` with ` io.stdout.supportsAnsiEscapes ` and ` lineLength `
97
+ with ` io.stdout.terminalColumns ` .
98
+
99
+ You should probably do this unless there's a good reason you don't want to
100
+ import ` io ` , for example when using this library on the web.
96
101
97
102
## LogFilter
98
103
@@ -128,6 +133,11 @@ class MyPrinter extends LogPrinter {
128
133
129
134
If you created a cool ` LogPrinter ` which might be helpful to others, feel free to open a pull request. :)
130
135
136
+ ### Colors
137
+
138
+ Please note that all IDEs (VSCode, XCode, Android Studio, IntelliJ) do not
139
+ support ANSI escape sequences in their terminal outputs. These escape sequences
140
+ are used to color output. If using such an IDE do not configure colored output.
131
141
132
142
## LogOutput
133
143
You can’t perform that action at this time.
0 commit comments