websocket-server – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using WebSockets.Common; |
||
6 | using System.Diagnostics; |
||
7 | |||
8 | namespace WebSocketsCmd |
||
9 | { |
||
10 | internal class WebSocketLogger : IWebSocketLogger |
||
11 | { |
||
12 | public void Information(Type type, string format, params object[] args) |
||
13 | { |
||
14 | Trace.TraceInformation(format, args); |
||
15 | } |
||
16 | |||
17 | public void Warning(Type type, string format, params object[] args) |
||
18 | { |
||
19 | Trace.TraceWarning(format, args); |
||
20 | } |
||
21 | |||
22 | public void Error(Type type, string format, params object[] args) |
||
23 | { |
||
24 | Trace.TraceError(format, args); |
||
25 | } |
||
26 | |||
27 | public void Error(Type type, Exception exception) |
||
28 | { |
||
29 | Error(type, "{0}", exception); |
||
30 | } |
||
31 | } |
||
32 | } |