Levent

Results 3 comments of Levent

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); } ```

pubspec.yaml logger_flutter: git: url: https://github.com/ewertonrp/logger_flutter.git