File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,12 @@ export 'src/ansi_color.dart';
5
5
export 'src/filters/development_filter.dart' ;
6
6
export 'src/filters/production_filter.dart' ;
7
7
export 'src/log_filter.dart' ;
8
- // [LogOutput] class needs to be exposed unconditionally
9
8
export 'src/log_output.dart' ;
10
- // ignore: duplicate_export
11
- export 'src/log_output.dart'
12
- if (dart.library.io) 'src/outputs/file_output.dart' ;
13
9
export 'src/log_printer.dart' ;
14
10
export 'src/logger.dart' ;
15
11
export 'src/outputs/console_output.dart' ;
12
+ export 'src/outputs/file_output_stub.dart'
13
+ if (dart.library.io) 'src/outputs/file_output.dart' ;
16
14
export 'src/outputs/memory_output.dart' ;
17
15
export 'src/outputs/multi_output.dart' ;
18
16
export 'src/outputs/stream_output.dart' ;
Original file line number Diff line number Diff line change
1
+ import 'dart:convert' ;
2
+ import 'dart:io' ;
3
+
4
+ import '../log_output.dart' ;
5
+ import '../logger.dart' ;
6
+
7
+ class FileOutput extends LogOutput {
8
+ FileOutput ({
9
+ required File file,
10
+ bool overrideExisting = false ,
11
+ Encoding encoding = utf8,
12
+ }) {
13
+ throw UnsupportedError ("Not supported on this platform." );
14
+ }
15
+
16
+ @override
17
+ void output (OutputEvent event) {
18
+ throw UnsupportedError ("Not supported on this platform." );
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments