AppFabric configuration dataCacheConfig and log element?

已鎖定 AppFabric configuration dataCacheConfig and log element?

  • 2010年11月28日 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

すべての返信

  • 2010年11月29日 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

  • 2010年11月30日 0:53
     
     
    That was what i was looking for indeed. Thanks.
    Taavik
  • 2012年3月27日 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