ComponentPro UltimateSftp

      UltimateTextWriterTraceListener Class

      See AlsoMembersMembers Options: Show AllLanguage Filter: AllSend comments on this topic to ComponentPro
      Directs tracing or debugging output to a TextWriter or to a Stream, such as FileStream.

      Syntax

      public class UltimateTextWriterTraceListener : UltimateTraceListener

      Examples

      Add log capability to your application.

      // Set the log level.
      ComponentPro.Diagnostics.XTrace.Default.Level = ComponentPro.Diagnostics.TraceEventType.Verbose;
      // By default the AutoFlush property is true.  
      // If you wish to turn it off, just set it to false as follows: 
      // ComponentPro.Diagnostics.XTrace.AutoFlush = false; 
       
      // Add the UltimateTextWriterTraceListener listener to write to a file.
      ComponentPro.Diagnostics.XTrace.Default.Listeners.Add(
          new ComponentPro.Diagnostics.UltimateTextWriterTraceListener("c:\\temp\\log.log"));
      
      // You can also write log to a Console window with the following code:
      ComponentPro.Diagnostics.XTrace.Default.Listeners.Add(new ComponentPro.Diagnostics.UltimateConsoleTraceListener());
      
      // Or write log to the Output window and .NET trace listeners:
      ComponentPro.Diagnostics.XTrace.Default.Listeners.Add(new ComponentPro.Diagnostics.UltimateOutputTraceListener());

      Inheritance Hierarchy

      Framework

      .NET Compact Framework.NET Compact Framework

      Supported version: 2.0, 3.5, and 3.9
      Assembly: ComponentPro.Common.CF (in ComponentPro.Common.CF.dll)

      .NET Framework.NET Framework

      Supported version: 2.0, 3.0, 3.5, 4.0, 4.5.x, 4.6.x and later
      Assembly: ComponentPro.Common (in ComponentPro.Common.dll)

      Portable Class Library for Windows Phone 8.1 and Windows 8.1 Store AppsPortable Class Library for Windows Phone 8.1 and Windows 8.1 Store Apps

      Supported version: 4.6.x and later
      Assembly: ComponentPro.Common.WinPcl (in ComponentPro.Common.WinPcl.dll)

      Universal Windows Platform (includes Windows 10 Mobile, Windows 10 Store Apps and Windows 10 IoT)Universal Windows Platform (includes Windows 10 Mobile, Windows 10 Store Apps and Windows 10 IoT)

      Supported version: 4.6.x and later
      Assembly: ComponentPro.Common.Uwp (in ComponentPro.Common.Uwp.dll)

      Xamarin AndroidXamarin Android

      Supported version: 2.3 and later
      Assembly: ComponentPro.Common.Android (in ComponentPro.Common.Android.dll)

      Xamarin MacXamarin Mac

      Supported version: 2.0.x and later
      Assembly: ComponentPro.Common.Mac (in ComponentPro.Common.Mac.dll)

      Xamarin iOSXamarin iOS

      Supported version: 5.1.x and later
      Assembly: ComponentPro.Common.iOS (in ComponentPro.Common.iOS.dll)

      See Also