Click or drag to resize

LogLogSetting Class

Log setting
Inheritance Hierarchy
SystemObject
  Velo.ServicesLogLogSetting

Namespace:  Velo.Services
Assembly:  Velo.Services (in Velo.Services.dll) Version: 22.2.10.1 (22.2.10.450)
Syntax
public class LogSetting

The LogLogSetting type exposes the following members.

Constructors
  NameDescription
Public methodLogLogSetting
Initializes a new instance of the LogSetting class. Constructor without parameter. Read setting from application configuration file app.config or web.config
Top
Properties
  NameDescription
Public propertyEmailTo
Send email to this address
Public propertySendEmail
Must log test to send email
Public propertySubject
Title of email
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleConvertDateFromSQL
Convert SQL date include value null
(Defined by Extension.)
Public Extension MethodConvertDateToSQL
Convert C# date type to SQL date type
(Defined by Extension.)
Top
Remarks
Default read setting from application configuration file app.config or web.config. Configuration file structure:
<configuration>
  ...
  <configSections>
    ...
    <!-- Log configuration Velo.Services.Log -->
    <section name="LogSetting" type="System.Configuration.NameValueSectionHandler"/>
    ...
  </configSections>
  ...
  <!-- Log configuration Velo.Services.Log -->
  <LogSetting>
    <add key="SendEmail" value="true" />
    <add key="EmailTo" value="fs@sowi.ch" />
    <add key="Subject" value="Web App Velo Exception" />
  </LogSetting>
  ...
</configuration>
See Also