|
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<!-- Client Logging section [DV]-->
<section name="Clog" type="DanielVaughan.Logging.Configuration.ClientLoggingConfigurationSectionHandler, DanielVaughan.Logging"/>
</configSections>
<!-- Clog [DV]
InternalLogLevel is used to monitor log messages originating from Clog,
and which are written to the console. Valid values are (from less to most restrictive):
All, Debug, Info, Warn, Error, Fatal, None.
Xmlns is specified in order to gain intellisense within the Visual Studio config editor.
Place the Clog schema located in the project\Schemas directory
into C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas directory.
SkipFrameCount is used to specify the number of frames to skip when resolving
the calling method of a write log call. Defaults to 4 if absent. -->
<Clog xmlns="http://danielvaughan.orpius.com/Clog/2/0/" InternalLogLevel="All" SkipFrameCount="4">
<LogStrategy Name="Client" Type="DanielVaughan.Logging.LogStrategies.ClientStrategy, DanielVaughan.Logging">
<!--
Use the action attribute to invert the behaviour of a filter.
Action can be set to either Deny or Allow.
-->
<!-- Prevent users identified by Environment.UserName. -->
<Filter Name="DenyUsers" Type="DanielVaughan.Logging.Filters.EnvironmentUserFilter, DanielVaughan.Logging"
Users="UserName1,UserName2,UserName3,UserName4" Action="Deny" />
<!-- Prevent machines identified by Environment.MachineName. -->
<Filter Name="DenyMachines" Type="DanielVaughan.Logging.Filters.MachineFilter, DanielVaughan.Logging"
Machines="AnExampleMachineName1,AnExampleMachineName2" Action="Deny" />
<!-- Uncomment to restrict logging to business hours. -->
<!--<Filter Name="BusinessHours" Type="DanielVaughan.Logging.Filters.TimeRangeFilter, DanielVaughan.Logging"
Begin="09:00" End="17:30" />-->
</LogStrategy>
</Clog>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IClogService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:2099/ClogService.svc" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IClogService" contract="DanielVaughan.Logging.IClogService"
name="WSHttpBinding_IClogService">
<identity>
<userPrincipalName value="SOJUZ\Daniel" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Daniel is a former senior engineer in Technology and Research at the Office of the CTO at Microsoft, working on next generation systems.
Previously Daniel was a nine-time Microsoft MVP and co-founder of
Outcoder, a Swiss software and consulting company.
Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.
Daniel is the developer behind several acclaimed mobile apps including
Surfy Browser for Android and Windows Phone. Daniel is the creator of a number of popular open-source projects, most notably
Codon.
Would you like Daniel to bring value to your organisation?
Please contact
Blog |
Twitter
Xamarin Experts
Windows 10 Experts