This is a migrated thread and some comments may be shown as answers.

Is there an easy to log all back-end sql for each operation?

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Leon
Top achievements
Rank 1
Leon asked on 14 Jun 2009, 02:56 PM
As the title, is there an easy to do that? For eg., put some codes in scope provider, so that we can log all back-end sql generated for each operation, logged by log4net or something else, is it doable? Thanks.

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 15 Jun 2009, 01:39 PM
Hello Leon,

OpenAccess has its own logging mechanism, you just have to enable it. Open the OpenAccess menu -> "Configuration" -> "Backend Configuration Settings", scroll to the "Logging" section and enable "Event tracing". You can choose logging to a file, to the Output console of Visual Studio or both. If file logging is enabled, you have to specify a file name as well. The log level should be "normal" or higher to track the SQL statements.

Sincerely yours,
Alexander
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Leon
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or