March 4, 2010

Default logging mode in DO4 is changed

Until upcoming today's v4.2 update DO4 was logging everything to Debug output (Debug -> Windows -> Debug output in VS.NET), if debugger was attached to process on its startup. I just disabled this - we've got some complains this affects on performance + floods Debug output.

So now logging is off by default. You must modify your App.config (or Web.config) to enable it:
<configuration>
  <configSections>
    <section name="Xtensive.Core.Diagnostics" type="Xtensive.Core.Diagnostics.Configuration.ConfigurationSection, Xtensive.Core" />
  </configSections>
  <Xtensive.Core.Diagnostics>
    <logs>
      <!-- Logging all Storage events to console, comprehensive format: -->
      <log name="Storage" provider="Console" format="Comprehensive" />
      <!-- Logging only some events from Storage to file, simple format:
      <log name="Storage" events="Warning,Error,FatalError" 
        provider="File" fileName="Storage.log" format="Simple" />
      -->
      <!-- Logging only some events from Storage to Debug output:
      <log name="Storage" events="Warning,Error,FatalError"
        provider="Debug" format="Simple" /> 
      -->
    </logs>
  </Xtensive.Core.Diagnostics>
</configuration>

The most comprehensive logging to Debug output can be turned on by this configuration:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="Xtensive.Core.Diagnostics" type="Xtensive.Core.Diagnostics.Configuration.ConfigurationSection, Xtensive.Core" />
  </configSections>
  <Xtensive.Core.Diagnostics>
    <logs>
      <log provider="Debug" format="Comprehensive" />
    </logs>
  </Xtensive.Core.Diagnostics>
</configuration>

Hopefully, this will resolve the issue. Refer to description of logging framework for further details.

P.S. DO v4.2 installers will be updated shortly.