IdeaBlade DevForce 2010 Help Reference
TraceFns Class
Members  See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace : TraceFns Class



A collection of static methods used to provide code assertions, tracing and logging functionality for release builds of DevForce applications.

Syntax

Visual Basic (Declaration) 
Public Class TraceFns 
Visual Basic (Usage)Copy Code
Dim instance As TraceFns
C# 
public class TraceFns 
C++/CLI 
public ref class TraceFns 

Remarks

Both TraceFns and DebugFns provide identical behavior except that calls to methods in this class are intended to always execute. In Visual Studio .NET projects, the conditional TRACE flag is enabled by default for both release and debug builds.

Messages are written to the ITraceLogger implementation found; if a custom ILogger is not provided then output is to the IdeaBlade.Core.IdeaBladeConfig.LoggingInfo.LogFile specified in the IdeaBlade configuration, and can also be viewed using the Trace Viewer utility.

Tracing "Filters" can be set using the IdeaBlade.Core.IdeaBladeConfig.LoggingInfo.RejectFilters and IdeaBlade.Core.IdeaBladeConfig.LoggingInfo.AcceptFilters nodes in the IdeaBlade configuration file to enable and disable logging from specific namespaces.

Inheritance Hierarchy

System.Object
   IdeaBlade.Core.TraceFns
      IdeaBlade.Core.DebugFns

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.