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

Side by Side Diff: runtime/observatory/tests/ui/log.dart

Issue 2751423005: Run dartfmt on all files under runtime. (Closed)
Patch Set: Run dartfmt on all files under runtime. Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:developer' as developer; 6 import 'dart:developer' as developer;
7 import 'package:logging/logging.dart'; 7 import 'package:logging/logging.dart';
8 8
9 main() { 9 main() {
10 Logger.root.level = Level.ALL; 10 Logger.root.level = Level.ALL;
11 Logger.root.onRecord.listen((logRecord) { 11 Logger.root.onRecord.listen((logRecord) {
12 developer.log( 12 developer.log(logRecord.message,
13 logRecord.message,
14 time: logRecord.time, 13 time: logRecord.time,
15 sequenceNumber: logRecord.sequenceNumber, 14 sequenceNumber: logRecord.sequenceNumber,
16 level: logRecord.level.value, 15 level: logRecord.level.value,
17 name: logRecord.loggerName, 16 name: logRecord.loggerName,
18 zone: null, 17 zone: null,
19 error: logRecord.error, 18 error: logRecord.error,
20 stackTrace: logRecord.stackTrace); 19 stackTrace: logRecord.stackTrace);
21 }); 20 });
22 new Timer.periodic(new Duration(seconds: 1), (t) { 21 new Timer.periodic(new Duration(seconds: 1), (t) {
23 Logger.root.info('INFO MESSAGE'); 22 Logger.root.info('INFO MESSAGE');
24 }); 23 });
25 new Timer.periodic(new Duration(seconds: 1), (t) { 24 new Timer.periodic(new Duration(seconds: 1), (t) {
26 Logger.root.fine('FINE MESSAGE'); 25 Logger.root.fine('FINE MESSAGE');
27 }); 26 });
28 } 27 }
OLDNEW
« no previous file with comments | « runtime/observatory/tests/ui/inspector_part.dart ('k') | runtime/tests/vm/dart/byte_array_optimized_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698