OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /// Message logging. | 5 /// Message logging. |
6 library pub.log; | |
7 | |
8 import 'dart:async'; | 6 import 'dart:async'; |
9 import 'dart:convert'; | 7 import 'dart:convert'; |
10 import 'dart:io'; | 8 import 'dart:io'; |
11 | 9 |
12 import 'package:args/command_runner.dart'; | 10 import 'package:args/command_runner.dart'; |
13 import 'package:path/path.dart' as p; | 11 import 'package:path/path.dart' as p; |
14 import 'package:source_span/source_span.dart'; | 12 import 'package:source_span/source_span.dart'; |
15 import 'package:stack_trace/stack_trace.dart'; | 13 import 'package:stack_trace/stack_trace.dart'; |
16 | 14 |
17 import 'exceptions.dart'; | 15 import 'exceptions.dart'; |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 message(_firstMessage); | 633 message(_firstMessage); |
636 } else { | 634 } else { |
637 message(_template.replaceAll("##", _count.toString())); | 635 message(_template.replaceAll("##", _count.toString())); |
638 } | 636 } |
639 } | 637 } |
640 | 638 |
641 void _initTimer() { | 639 void _initTimer() { |
642 _timer = new Timer(_window, end); | 640 _timer = new Timer(_window, end); |
643 } | 641 } |
644 } | 642 } |
OLD | NEW |