OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library barback.test.transformer.log; | 5 library barback.test.transformer.log; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
10 import 'package:barback/src/utils.dart'; | 10 import 'package:barback/src/utils.dart'; |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 Future doApply(Transform transform) { | 27 Future doApply(Transform transform) { |
28 return newFuture(() { | 28 return newFuture(() { |
29 for (var entry in _entries) { | 29 for (var entry in _entries) { |
30 var parts = entry.split(":"); | 30 var parts = entry.split(":"); |
31 var logFn; | 31 var logFn; |
32 switch (parts[0]) { | 32 switch (parts[0]) { |
33 case "error": logFn = transform.logger.error; break; | 33 case "error": logFn = transform.logger.error; break; |
34 case "warning": logFn = transform.logger.warning; break; | 34 case "warning": logFn = transform.logger.warning; break; |
35 case "info": logFn = transform.logger.info; break; | 35 case "info": logFn = transform.logger.info; break; |
| 36 case "fine": logFn = transform.logger.fine; break; |
36 } | 37 } |
37 | 38 |
38 logFn(parts[1].trim()); | 39 logFn(parts[1].trim()); |
39 } | 40 } |
40 }); | 41 }); |
41 } | 42 } |
42 } | 43 } |
OLD | NEW |