Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: pkg/barback/test/transformer/log.dart

Issue 166333003: Add support for a "fine" barback log level. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698