Locked AppFabric configuration dataCacheConfig and log element?

  • Sunday, November 28, 2010 6:31 PM
     
     

    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

All Replies

  • Monday, November 29, 2010 2:31 PM
     
     Answered

    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

  • Tuesday, November 30, 2010 12:53 AM
     
     
    That was what i was looking for indeed. Thanks.
    Taavik
  • Tuesday, March 27, 2012 4:27 PM
     
     

    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