A visual console inspired by VConsole.
- configurable: It's a
Logger
Plugin. - simple: two channel output, IDE's console and screen visual-console.
- tiny: It has a small size.
- fast: It works fast and smooth.
- powerful: Filter、Search, StackTrace, Clean, Copy, Delete some log by double-click and etc.
final logger = VisualLogger(
filter: ProductionFilter(),
output: VisualOutput(),
printer: VisualPrinter(
realPrinter: VisualPrefixPrinter(
methodCount: 1,
lineLength: () {
int lineLength = 80;
try {
lineLength = stdout.terminalColumns;
} catch (e) {}
return lineLength;
}(),
colors: stdout.supportsAnsiEscapes, // Colorful log messages
printEmojis: false,
printTime: true,
),
),
);
MaterialApp(
title: 'Visual Console Demo',
home: const MyHomePage(),
builder: (context, child) {
return Stack(
children: [
child!,
const Console(),
],
);
},
);
logger.v("verbose");
logger.d("debug");
logger.i("info");
logger.w("warning");
logger.e("error");
logger.wtf("wtf");
this package is a plugin of Logger
;