Examples of logging

Logging using Microsoft Enterprise Library and Flexberry.

When using Microsoft Enterprise Library Logging Application Block can be used as a Trace Listener’a class CaseberryDatabaseTraceListener from the Assembly IIS.Flexberry.Logging.MsEntLib.

An example of topic listeners in the application configuration:

    <listeners>
      <add formatter="Text Formatter"
			  listenerDataType="IIS.Flexberry.Logging.MsEntLib.Configuration.CaseberryDatabaseTraceListenerData, IIS.Flexberry.Logging.MsEntLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e89274d6fcfab3e9"
			  traceOutputOptions="None" type="IIS.Flexberry.Logging.MsEntLib.CaseberryDatabaseTraceListener, IIS.Flexberry.Logging.MsEntLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e89274d6fcfab3e9"
			  name="Database Trace Listener" />
    </listeners>

The log record will be saved in the ApplicationLog table. List to view the log can be embedded in an application using the class ApplicationLogL from the Assembly IIS.Flexberry.Logging(Forms):

arr.Add(new ICSSoft.STORMNET.UI.ContRunner(typeof(IIS.Flexberry.Logging.Forms.ApplicationLogL), "Logging", "Application log", ""));

(code for DesktopCustomizer’a)