diff --git a/example/main.dart b/example/main.dart index 68846e9..c653880 100644 --- a/example/main.dart +++ b/example/main.dart @@ -9,7 +9,7 @@ import 'dart:convert'; import 'package:l/l.dart'; /// Whether to override the output of the logger. -const bool kReleaseMode = false; +const bool overrideOutput = true; void main([List? args]) => l.capture( () => runZonedGuarded( @@ -31,11 +31,11 @@ void main([List? args]) => l.capture( ), // Logger options passed to the underlying logger zone. const LogOptions( - handlePrint: true, + handlePrint: true, // Whether to handle `print()` calls. messageFormatting: _customFormatter, - overrideOutput: kReleaseMode ? _customPrinter : null, - outputInRelease: false, - printColors: true, + overrideOutput: overrideOutput ? _customPrinter : null, + outputInRelease: false, // Whether to output in release mode. + printColors: true, // Whether to print colors in the console. ), );