Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
Configuring Logging
Programmer's Guide > OpenAccess ORM Classic (Old API) > OpenAccess Tasks > Tracing and Logging > Configuring Logging

Glossary Item Box

This documentation article is a legacy resource describing the functionality of the deprecated OpenAccess Classic only. The contemporary documentation of Telerik OpenAccess ORM is available here.

You can use the backend configuration section within the App.config file to set event logging.

Sample settings:

App.config Copy Code
<backendconfiguration id="mssqlConfiguration" backend="mssql">
       
<logging.logEvents>all</logging.logEvents>
       
<logging.logEventsToSysOut>true</logging.logEventsToSysOut>
</
backendconfiguration>

Event Logging Levels

The event logging levels that can be used in <logging.logEvents> property are:

Logging Level

Description

none

Logs no events. Use this only while doing benchmarking.

errors

Logs only errors (such as connections timing out)

normal

Logs the most of the events that do not reduce performance significantly (e.g. SQL executed)

verbose

Logs majority of the events (this slows down the performance, recommended only for debugging purposes)

all

Logs all possible events (this slows down the performance significantly, could be used while debugging)