I have a WCF service that is protected by username and password (using SqlMembershipProvider). I would like to register EVERY (successful and unsuccessful) attempt to enter this service and save the user credentials in the database using the logging application block. When I turn on WCF logging and trace it using the Logging application block, I get something like this (about 100 of these logs for one login attempt):
Timestamp: 6/5/2009 12:03:01 PM
Message: <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Start"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ActivityBoundary.aspx</TraceIdentifier><Description>Activity boundary.</Description><AppDomain>IX.Services.Host.vshost.exe</AppDomain><ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/DictionaryTraceRecord"><ActivityName>Execute 'Services.Contracts.ILoginService.Login'.</ActivityName><ActivityType>ExecuteUserCode</ActivityType></ExtendedData></TraceRecord>
Category: System.ServiceModel
Priority: 2147483647
EventId: 131085
Severity: Start
Title:
Machine: PC204
Application Domain: Services.Host.vshost.exe
Process Id: 7864
Process Name: D:\..\Services.Host.vshost.exe
Win32 Thread Id: 6392
Thread Name:
Extended Properties: TraceEventCache - System.Diagnostics.TraceEventCache
I cannot find useful information from these logs (namely user credentials). So my question is: how can I register user credentials from WCF services in the database using the logging application block?
Thanks in advance for your reply!
user117933