Skip to content

Commit d5d0322

Browse files
authored
fix: add disableTestsConsoleOutput option (#12)
1 parent 72d1725 commit d5d0322

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/src/code_generation/logger/stacked_logger_annotations.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ class StackedLogger {
1111
/// Default is true
1212
final bool disableReleaseConsoleOutput;
1313

14+
/// When set to true, console logs will not be printed while running unit
15+
/// tests or integration tests
16+
///
17+
/// Default is false
18+
final bool disableTestsConsoleOutput;
19+
1420
const StackedLogger({
1521
this.loggerOutputs = const [],
1622
this.logHelperName = 'getLogger',
1723
this.disableReleaseConsoleOutput = true,
24+
this.disableTestsConsoleOutput = false,
1825
});
1926
}

0 commit comments

Comments
 (0)