提交 4beb53c9 编写于 作者: A Atsushi Eno

One more step to enable WCF diagnostics in Logger, and add HttpReplyChannel log.

上级 c71ce9b4
......@@ -176,6 +176,8 @@ namespace System.ServiceModel.Channels.Http
msg.Properties.Add ("Via", LocalAddress.Uri);
msg.Properties.Add (HttpRequestMessageProperty.Name, CreateRequestProperty (ctxi));
Logger.LogMessage (MessageLogSourceKind.TransportReceive, ref msg, 0x10000); // FIXME: pass maxMessageSize.
context = new HttpRequestContext (this, ctxi, msg);
reqctx = context;
return true;
......
......@@ -69,6 +69,11 @@ namespace System.ServiceModel
#if !NET_2_1
static readonly TraceSource source = new TraceSource ("System.ServiceModel");
static readonly TraceSource message_source = new TraceSource ("System.ServiceModel.MessageLogging");
static Logger ()
{
message_source.Switch.Level = SourceLevels.Information;
}
#endif
#region logger methods
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册