OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analysis.logger; | 5 library analysis.logger; |
6 | 6 |
7 import 'package:analyzer/src/generated/engine.dart'; | 7 import 'package:analyzer/src/generated/engine.dart'; |
8 import 'package:logging/logging.dart' as logging; | 8 import 'package:logging/logging.dart' as logging; |
9 | 9 |
10 /** | 10 /** |
(...skipping 10 matching lines...) Expand all Loading... |
21 void logError(String message) { | 21 void logError(String message) { |
22 baseLogger.severe(message); | 22 baseLogger.severe(message); |
23 } | 23 } |
24 | 24 |
25 @override | 25 @override |
26 void logError2(String message, Exception exception) { | 26 void logError2(String message, Exception exception) { |
27 baseLogger.severe(message, exception); | 27 baseLogger.severe(message, exception); |
28 } | 28 } |
29 | 29 |
30 @override | 30 @override |
31 void logError3(Exception exception) { | |
32 baseLogger.severe("Exception", exception); | |
33 } | |
34 | |
35 @override | |
36 void logInformation(String message) { | 31 void logInformation(String message) { |
37 baseLogger.info(message); | 32 baseLogger.info(message); |
38 } | 33 } |
39 | 34 |
40 @override | 35 @override |
41 void logInformation2(String message, Exception exception) { | 36 void logInformation2(String message, Exception exception) { |
42 baseLogger.info(message, exception); | 37 baseLogger.info(message, exception); |
43 } | 38 } |
44 | |
45 @override | |
46 void logInformation3(String message, Exception exception) { | |
47 baseLogger.info(message, exception); | |
48 } | |
49 } | 39 } |
OLD | NEW |