Eplan Platform API
Eplan.EplApi.Base Namespace / TraceListener Class
Members Example

In This Topic
    TraceListener Class
    In This Topic
    Output of trace messages to the EPLAN system message management (incl. EPLAN log file)
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.Diagnostics.TraceListener
             Eplan.EplApi.Base.TraceListener

    Syntax
    public class TraceListener : System.Diagnostics.TraceListener 
    public ref class TraceListener : public System.Diagnostics.TraceListener 
    Example
    Example of TRACE outputs
    Eplan.EplApi.Base.TraceListener oTrace= new Eplan.EplApi.Base.TraceListener();
    System.Diagnostics.Trace.Listeners.Add(oTrace); // When new trace listeners are created and added, they must be removed again later!
    
    oTrace.WriteLine("Begin Execute"); // Only write to the EPLAN system message management.
    System.Diagnostics.Trace.WriteLine("Begin Execute"); // Send to all trace listeners.
    
    
    oTrace.Close();
    System.Diagnostics.Trace.Listeners.Remove(oTrace);
    Public Constructors
     NameDescription
    Public Constructor  
    Top
    Public Properties
    Public Methods
     NameDescription
    Public Method (Inherited from System.Diagnostics.TraceListener)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodDestructor for deterministic finalization of TraceListener object. (Inherited from System.Diagnostics.TraceListener)
    Public MethodOverloaded.  (Inherited from System.Diagnostics.TraceListener)
    Public Method (Inherited from System.Diagnostics.TraceListener)
    Public Method (Inherited from System.MarshalByRefObject)
    Public Method (Inherited from System.MarshalByRefObject)
    Public MethodOverloaded.  (Inherited from System.Diagnostics.TraceListener)
    Public MethodOverloaded.  (Inherited from System.Diagnostics.TraceListener)
    Public Method (Inherited from System.Diagnostics.TraceListener)
    Public MethodOverloaded. Overridden. Outputs a line to the system message management.  
    Public MethodOverloaded. Overridden. Outputs a line to the system message management.  
    Top
    See Also