Skip Navigation Links

Why use shared cache?

There is no more efficient way to increase the scalable performance of applications then the use caching to unload deeper layers.

Skip Navigation Links>> Shared Cache>> Shared Cache Config>> Configuration NLog

Configure NLOG Section

for more information how to configure nlog, which is an external logging component please visit their website. they have great tutorials and descriptions about the different configuration options.

at indeXus.Net Shared Cache we decided to define following log files:

  • General - Logs any kind of information
  • Traffic - anything around traffic
  • Tracking - tracking means which methods are called in which order only logged in Development environment while you enable TRACE in Project Settings 
  • Sync - all information around replication
  • Memory - some details about memory.

check nlog project website for more information about it ( http://www.nlog-project.org/ ) - thanks mates it's a great product

The client and server configurations contains a EnableLogging flag, if this is enabled ("1") it will mostly will log Traffic Data and details and some startup data such as your configuration. In case you report Bugs / Suggestions please try always to provide us this data. It will make it easier to understand the problems you face with.

<nlog autoReload="true" throwExceptions="true">
<targets async="true">
<target 
  name="shared_cache_general" 
  type="File" 
  layout="${longdate}|${level:uppercase=true}|${message}" 
  filename="C:\temp\${date:format=yyyy-MM-dd}_logA.txt"/>
<target 
  name="shared_cache_traffic" 
  type="File" 
  layout="${longdate}|${level:uppercase=true}|${message}"
  filename="C:\temp\${date:format=yyyy-MM-dd}_logB.txt"/>
<target 
  name="shared_cache_tracking"
  type="File" 
  layout="${longdate}|${level:uppercase=true}|${message}" 
  filename="C:\temp\${date:format=yyyy-MM-dd}_logC.txt"/>
<target 
  name="shared_cache_sync"
  type="File" 
  layout="${longdate}|${level:uppercase=true}|${message}" 
  filename="C:\temp\${date:format=yyyy-MM-dd}_logD.txt"/>
<target 
  name="shared_cache_memory"
  type="File" 
  layout="${longdate}|${level:uppercase=true}|${message}" 
  filename="C:\temp\${date:format=yyyy-MM-dd}_logE.txt"/>
</targets>
<rules>
  <logger 
    name="General" 
    minlevel="Debug" 
    writeTo="shared_cache_general" final="true"/>
  <logger 
    name="Traffic" 
    minlevel="Debug" 
    writeTo="shared_cache_traffic" final="true"/>
  <logger 
    name="Tracking" 
    minlevel="Debug" 
    writeTo="shared_cache_tracking" 
    final="true"/>
  <logger 
    name="Sync" 
    minlevel="Debug" 
    writeTo="shared_cache_sync" 
    final="true"/>
  <logger 
   name="Memory" 
   minlevel="Debug" 
   writeTo="shared_cache_memory" 
   final="true"/>
  <logger 
   name="*" 
   minlevel="Debug" 
   writeTo="shared_cache_general"/>
  <logger 
   name="*" 
   minlevel="Info" 
   writeTo="shared_cache_general"/>
</rules>
</nlog>