Skip to content

Commit

Permalink
Add docs to MemoryOutput
Browse files Browse the repository at this point in the history
Again thanks to @gmpassos.
  • Loading branch information
haarts committed Sep 24, 2020
1 parent a3a92b1 commit 3febd51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/outputs/memory_output.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import 'package:logger/src/log_output.dart';

/// Buffers [OutputEvent]s.
class MemoryOutput extends LogOutput {
/// Maximum events in [buffer].
final int bufferSize;

/// A secondary [LogOutput] to also received events.
final LogOutput secondOutput;

/// The buffer of events.
final ListQueue<OutputEvent> buffer;

MemoryOutput({this.bufferSize = 20, this.secondOutput})
Expand Down

0 comments on commit 3febd51

Please sign in to comment.