<PackageReference Include="SSH.NET" Version="2023.0.1" />

DiagnosticAbstraction

public static class DiagnosticAbstraction
Provides access to the Diagnostics internals of SSH.NET.
using System; using System.ComponentModel; using System.Diagnostics; namespace Renci.SshNet.Abstractions { [EditorBrowsable(EditorBrowsableState.Never)] public static class DiagnosticAbstraction { public static readonly TraceSource Source = new TraceSource("SshNet.Logging"); [Conditional("DEBUG")] public static void Log(string text, TraceEventType type = TraceEventType.Verbose) { Source.TraceEvent(type, Environment.CurrentManagedThreadId, text); } } }