Hi Guys

I've downloaded the latest available version from the website (4.1.1_7999) to try it, and did not succeed to enable the logging.

As I understand there is a problem in the documentation (thanks to this question).

It says now:

First of all, include Xtensive.Core.Diagnostics section into configSections section:
<section name="Xtensive.Core.Diagnostics" type="Xtensive.Core.Diagnostics.Configuration.ConfigurationSection, Xtensive.Core" />

While the correct version would be:

<section name="Xtensive.Diagnostics" type="Xtensive.Diagnostics.Configuration.ConfigurationSection, Xtensive.Core"/>

Please, correct it. It will help to save another hour for somebody else.

And btw, using the example from the documentation I also did not succeed to get SQL batched that DO sends to the SQL server.

<log name="Storage" events="Warning,Error,FatalError" provider="File" fileName="Storage.log" />

asked Jan 28 '12 at 12:25

Anton's gravatar image


edited Jan 28 '12 at 12:46

One Answer:

Greetings, Anton.

My fault, I forgot to fix this. Thanks for pointing to the issue. Will do that shortly.

As for logging SQL commands, try this one:

<log name="Storage.Providers.Sql" events="Info,Debug" provider="File" fileName="Storage.log"/>

answered Jan 28 '12 at 14:24

Dmitri%20Maximov's gravatar image

Dmitri Maximov

edited Jan 28 '12 at 14:28

<log name="Storage.Providers.Sql" events="Info,Debug" provider="File" filename="Storage.log"/>

also doesn't work. I get only SQL commands of database schema upgrade, but not queries.

(Jan 28 '12 at 15:41) Anton Anton's gravatar image

I'll check that on Monday and update the answer with correct logging configuration.

(Jan 29 '12 at 01:14) Dmitri Maximov Dmitri%20Maximov's gravatar image


I've checked the configuration on a Debug build and it works. It seems that Debug event might be skipped on Release builds.

I've updated the documentation so it is correct now.

(Jan 31 '12 at 05:57) Dmitri Maximov Dmitri%20Maximov's gravatar image

What is the equivalent of the configuration section in code?

<section name="Xtensive.Diagnostics" type="Xtensive.Diagnostics.Configuration.ConfigurationSection, Xtensive.Core"/>
(Feb 02 '12 at 08:36) olorin olorin's gravatar image

Am I right saying you want to configure the logging through the code instead of configuraiton file?

(Feb 02 '12 at 09:04) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Jan 28 '12 at 12:25

Seen: 2,724 times

Last updated: Feb 02 '12 at 09:04

powered by OSQA