0

To log known Personally identifiable information in windows one can configure machine.config file as below...

<configuration>
    <system.serviceModel>
        <machineSettings enableLoggingKnownPii="true" />
    </system.serviceModel>
</configuration>

And in WCF configuration file configuration is required as below

<configuration>
    <system.diagnostics>
        <sources>
            <source name="System.ServiceModel.MessageLogging" logKnownPii="true">
                <listeners> 
                ... 
                </listeners>
            </source>
            <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing">
            <listeners>
        ... 
            </listeners>
            </source>
        </sources>
    </system.diagnostics>
</configuration>

Now the question is when the logKnownPii=false what all information will not be logged or in other way what all information logs I can see in log files after turning the setting ON (logKnownPii=true).

Milan Raval
  • 1,880
  • 1
  • 16
  • 33
  • It helps if you tell us what you've tried, and where you've looked and why those resources weren't suitable. Your current question seems answerable with just a web search? – Jeroen Sep 17 '12 at 05:55
  • You are right, I have posted the question in hurry. Modified it now, does it make sense? – Milan Raval Sep 17 '12 at 06:14

1 Answers1

0

I got the below blog that explains how to add [PII] attribute to data contract, and that is what I was looking for.

http://blogs.msdn.com/b/martijnh/archive/2008/08/18/suppressing-personal-identifiable-information-pii-in-wcf-log-files.aspx

Milan Raval
  • 1,880
  • 1
  • 16
  • 33