PPJ Manual
HomeCurrent IssuesDownloads
  • Welcome
  • Releases
    • PPJ 2023
  • PPJ 2023
  • PPJ Web API
  • PPJ Desktop API
  • Wisej.NET Documentation
  • General
    • Framework
      • Features
        • SAL and SQL Functions
        • Constants and Variables
        • SalContext
        • Visual Toolchest
        • XSal2
        • Reporting Support
        • LINQ Support
        • SalCompileAndEvaluate
        • Unicode Support
        • Startup Arguments
        • App.config
      • Data Types
        • Automatic Casts
        • Dynamic Arrays
      • Controls
        • ToolBar
        • TabControl
        • TableWindow
        • QuickObject
        • Ribbon Bar
        • NavigationBar
      • SQL Support
        • Configuration
        • ADO.NET Drivers
        • Bind and Into Variables
        • DBP Parameters
        • SqlContext
      • Extensions
        • Table Window
        • Unicode Support
        • Bug Fixes
        • Object Oriented Types
        • Custom Parsers
        • Named Properties
        • Microsoft Charts
        • Tabbed MDI
        • Watermark
        • HTML Rendering
      • Skins and Themes
        • Skin Files
        • Theme Files
        • Configuration
        • Skin Editor
        • Theme Builder
      • Tracing
        • Trace Viewer
        • Default Listeners
        • Tracing the Application
      • Spell Checker
        • Dictionaries
    • Ported Application
      • Project Structure
        • Late Bind Calls
        • Visual Styles
        • Unqualified References
        • Message Actions
        • When SQLError
        • Classes
      • Global Items
      • Forms
      • COM/ActiveX
      • Multiple Inheritance
      • Configuration Tool
      • Issues & Workarounds
    • Ported Reports
      • General
      • Crystal Reports
        • Structure
        • Unsupported Features
      • List & Label
        • Report Conversion
        • Structure
        • Document
        • Input Items
        • Passing Data
        • Unsupported Features
      • Reporting Services
        • Features
      • Stimulsoft
        • Break Groups
        • Fields
        • Formulas
        • Cache Mode
Powered by GitBook
On this page

Was this helpful?

  1. General
  2. Framework
  3. Tracing

Default Listeners

There are a number of default listeners already provided with the basic .NET Framework that can be used to log the diagnostics traces coming from the PPJ Framework and the application.

You can also write your own listener by deriving from System.Diagnostics.TraceListener. A custom listener would allow you to capture only specific events and process the information however you like. Some examples can be storing the trace logs in a database, send emails, log them on a remote system and more.

The most useful default listeners provided in the basic .NET Framework are listed in the following table:

Listener
Description

DefaultTraceListener

Logs traces to the output window in VisualStudio.

TextWriterTraceListener

Logs traces to a text file.

ConsoleTraceListener

Logs traces to the console window.

DelimitedListTraceListener

Logs traces to a delimited text file. The default delimiter is ",".

XmlWriterTraceListener

Logs traces to a XML formatted text file.

EventLogTraceListener

Logs traces to Windows' event log.

FormViewerTraceListener

Logs traces to a form viewer. This listener is added as part of the new PPJ.Utility namespace.

PreviousTrace ViewerNextTracing the Application

Last updated 2 years ago

Was this helpful?