logger_flutter
logger_flutter copied to clipboard
log length
Log in flutter after shaking is very limited in length.
Only give ~25 most recent logs. Is this the intended functionality. I would be nice if it held all of the logs.
this bufferSize param
=Example===
class ExampleLogOutput extends ConsoleOutput {
@override
void output(OutputEvent event) {
super.output(event);
LogConsole.add(event, bufferSize: 100);
}
}
static void add(OutputEvent outputEvent, {int bufferSize = 20}) {
while (_outputEventBuffer.length >= (bufferSize ?? 1)) {
_outputEventBuffer.removeFirst();
}
_outputEventBuffer.add(outputEvent);
}