Skip to content

Commit 22f106c

Browse files
committed
Merge branch 'release/3.0.0-nullsafety.5'
2 parents e383ac2 + 607315c commit 22f106c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.0.0-nullsafety.5 - 2021-03-24
2+
## Fixed
3+
- Use `print` when `stdout` is unavailable
4+
5+
16
## 3.0.0-nullsafety.4 - 2021-03-24
27
### Added
38
- Flutter example

lib/src/environment_specific/log_delegate_io.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ import 'package:meta/meta.dart';
55
import '../log_level.dart';
66
import 'console_log_formatter_mixin.dart';
77
import 'log_delegate.dart';
8+
import 'log_delegate_stub.dart';
89
import 'message_formatting_pipeline.dart';
910
import 'message_log_formatting_mixin.dart';
1011

1112
/// {@nodoc}
1213
@internal
13-
LogDelegate createEnvironmentLogDelegate() => LogDelegateIO(io.stdout);
14+
LogDelegate createEnvironmentLogDelegate() =>
15+
io.stdout.hasTerminal ? LogDelegateIO(io.stdout) : LogDelegateStub();
1416

1517
/// {@nodoc}
1618
@internal

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
Cross-platform html/io Logger library with simple API.
44
Manipulate with native and web console.
55
Support ascii colorize output.
6-
version: 3.0.0-nullsafety.4
6+
version: 3.0.0-nullsafety.5
77
repository: https://github.com/plugfox/l/tree/master
88
issue_tracker: https://github.com/plugfox/l/issues
99
homepage: https://github.com/plugfox/l

0 commit comments

Comments
 (0)