Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Jul 13, 2023
1 parent fc829df commit 842c616
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>? args]) => l.capture<void>(
() => runZonedGuarded<void>(
Expand All @@ -31,11 +31,11 @@ void main([List<String>? args]) => l.capture<void>(
),
// 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.
),
);

Expand Down

0 comments on commit 842c616

Please sign in to comment.