LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 Copyright 2011 Google Inc | 2 Copyright 2011 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
11 distributed under the License is distributed on an "AS IS" BASIS, | 11 distributed under the License is distributed on an "AS IS" BASIS, |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 See the License for the specific language governing permissions and | 13 See the License for the specific language governing permissions and |
14 limitations under the License. | 14 limitations under the License. |
15 */ | 15 */ |
16 | 16 |
17 using System; | 17 using System; |
18 using System.Reflection; | 18 using System.Reflection; |
19 | 19 |
20 using log4net; | 20 using log4net; |
21 | 21 |
22 using Google.Apis.Testing; | |
23 using Google.Apis.Util; | 22 using Google.Apis.Util; |
24 | 23 |
25 namespace Google.Apis.Logging | 24 namespace Google.Apis.Logging |
26 { | 25 { |
27 /// <summary> A logger implementation which makes use of the log4net library
. </summary> | 26 /// <summary> A logger implementation which makes use of the log4net library
. </summary> |
28 public sealed class Log4NetLogger : ILogger | 27 public sealed class Log4NetLogger : ILogger |
29 { | 28 { |
30 private readonly ILog log; | 29 private readonly ILog log; |
31 | 30 |
32 static Log4NetLogger() | 31 static Log4NetLogger() |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 { | 78 { |
80 log.Error(string.Format(message, formatArgs), exception); | 79 log.Error(string.Format(message, formatArgs), exception); |
81 } | 80 } |
82 | 81 |
83 public void Error(string message, params object[] formatArgs) | 82 public void Error(string message, params object[] formatArgs) |
84 { | 83 { |
85 log.Error(string.Format(message, formatArgs)); | 84 log.Error(string.Format(message, formatArgs)); |
86 } | 85 } |
87 } | 86 } |
88 } | 87 } |
LEFT | RIGHT |