A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://sshnet.github.io/SSH.NET/logging.html below:

Logging | SSH.NET - A Secure Shell (SSH) library for .NET, optimized for parallelism

Logging

SSH.NET uses the Microsoft.Extensions.Logging API to log diagnostic messages. In order to access the log messages of SSH.NET in your own application for diagnosis, register your own ILoggerFactory before using the SSH.NET APIs, for example:

using Microsoft.Extensions.Logging;

ILoggerFactory loggerFactory = LoggerFactory.Create(builder =>
{
    builder.SetMinimumLevel(LogLevel.Debug);
    builder.AddConsole();
});

Renci.SshNet.SshNetLoggingConfiguration.InitializeLogging(loggerFactory);

All messages by SSH.NET are logged under the Renci.SshNet category.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4