| Index: pkg/logging/README.md
|
| diff --git a/pkg/logging/README.md b/pkg/logging/README.md
|
| index 9d6c97815a78f835054978ad179d77b0052caff9..f4781a7aecd36015edacbc5f10f25d051be49ae7 100644
|
| --- a/pkg/logging/README.md
|
| +++ b/pkg/logging/README.md
|
| @@ -39,4 +39,11 @@ var future = doSomethingAsync().then((result) {
|
| }).catchError((e, stackTrace) => log.severe('Oh noes!', e, stackTrace));
|
| ```
|
|
|
| +When logging more complex messages, you can pass a closure instead
|
| +that will be evaluated only if the message is actually logged:
|
| +
|
| +```dart
|
| + log.fine(() => [1, 2, 3, 4, 5].map((e) => e * 4).join("-"));
|
| +```
|
| +
|
| See the [Logger] class for the different logging methods.
|
|
|