Hello Guys,

I am evaluating the DataObjects.net library in order to buy it and it looks like the internal logging doesn't work for me. I did as the manual says:

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

and also tried this one:

<log name="Storage" events="Info,Debug" provider="Debug" /> <!-- prefered way for me -->

but none of those worked. There is no the Storage.log file created. No debug window output. I also tried to put different names like Storage.Providers.Sql. again, no luck. Is there something I am missing?

asked Jul 09 '11 at 16:48

Dmitry's gravatar image

Dmitry
7113

edited Jul 10 '11 at 04:06

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211


One Answer:

Hello Dmitry,

Sorry for the nuisance, the manual contains outdated information. Here is the correct version:

<configuration>
  <configSections>
    <section name="Xtensive.Diagnostics" type="Xtensive.Diagnostics.Configuration.ConfigurationSection, Xtensive.Core"/>
  </configSections>
  <Xtensive.Diagnostics>
    <logs>
      <log name="Orm" events="Info,Debug" provider="File" fileName="D:\Temp\orm.log"/>
      <log name="Storage.Providers.Sql" events="Info,Debug" provider="File" fileName="D:\Temp\orm-sql.log"/>
    </logs>
  </Xtensive.Diagnostics>
</configuration>

answered Jul 10 '11 at 04:29

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211

Thanks! This helped partially but there are still 2 issues I can see:

  1. provider="Debug" doesn't log anything to the debug output window.

  2. Neither Storage.Providers.Sql nor Storage is logging linq or entity creation queries. I see only the database build up queries at the application startup time.

(Jul 10 '11 at 06:14) Dmitry Dmitry's gravatar image

Dmitry,

there are some issues with Debug provider, it doesn't seem to work. As for LINQ queries, they are not logged at all. If it is important, we could add this functionality later.

(Jul 10 '11 at 06:20) 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

Subscription:

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

Tags:

×5

Asked: Jul 09 '11 at 16:48

Seen: 2,766 times

Last updated: Jul 10 '11 at 06:20

powered by OSQA