AppFabric configuration dataCacheConfig and log element?
-
28 พฤศจิกายน 2553 18:31
In the Appfabric Caching service configuration you have "dataCacheConfig" element and inside it you have a "log" element. There's no information on what the log element should have in it self or whats the possible configuration?
Im guessing this is to log information on Cache Host side and thats what im after right now. However, no idea how to configure it.
I've tried: <log location="C:\Windows\System32\AppFabric\test.log" logLevel="Error" />
No banana.
Thanks,
Taavik
ตอบทั้งหมด
-
29 พฤศจิกายน 2553 14:31
Taavik,
We don't typically support making changes directly to the service configuration file unless it is for work arounds or one-off support scenarios. However, it sounds like your goal is to provide more verbose logging on the cache host. You can do this. See the event tracing for windows section of the whitepaper on deployment and management: http://msdn.microsoft.com/en-us/library/ff921010.aspx. Also see this blog entry on the AppFabric Customer Advisory Team blog: http://blogs.msdn.com/b/appfabriccat/archive/2010/09/20/appfabric-cache-peeking-into-client-amp-server-wcf-communication.aspx.
Jason Roth
- เสนอเป็นคำตอบโดย JasonRothMicrosoft 29 พฤศจิกายน 2553 14:31
- ทำเครื่องหมายเป็นคำตอบโดย Taavi KoosaarMVP 30 พฤศจิกายน 2553 0:52
-
30 พฤศจิกายน 2553 0:53That was what i was looking for indeed. Thanks.
Taavik -
27 มีนาคม 2555 16:27
Hi Taavik,
The other thing which you can do is to enable normal WCF logging in DistributedCacheService.exe.config like below and you will see the SOAP requests/response coming in from clients and going out from server.
<system.serviceModel>
<!--WCF Performance Counters Switch-->
<diagnostics performanceCounters="All">
<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="50000" maxSizeOfMessageToLog="2000">
</messageLogging>
</diagnostics>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add name="PumaWCFListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="C:\Logs\AppFabric.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>Cheers.
MCTS BTS 2006/ASP.net 2.0