Test4Net.UITest 2022.11.5.2

dotnet add package Test4Net.UITest --version 2022.11.5.2
                    
NuGet\Install-Package Test4Net.UITest -Version 2022.11.5.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Test4Net.UITest" Version="2022.11.5.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Test4Net.UITest" Version="2022.11.5.2" />
                    
Directory.Packages.props
<PackageReference Include="Test4Net.UITest" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Test4Net.UITest --version 2022.11.5.2
                    
#r "nuget: Test4Net.UITest, 2022.11.5.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Test4Net.UITest@2022.11.5.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Test4Net.UITest&version=2022.11.5.2
                    
Install as a Cake Addin
#tool nuget:?package=Test4Net.UITest&version=2022.11.5.2
                    
Install as a Cake Tool

Test4Net.UITest

Introduction

Net core logger. Can incorporate log4net with log4net aspNetCore extension.

Examples

Simple logger

var log = LogProvider._GetLogger<Program>();
log.Info("Info message !!!", 1, 2, 3);
log.Warn("Warn message !!!", 1, 2, 3);
log.Debug("Debug message !!!", 1, 2, 3);
log.Error(new ArgumentException(".......No arguments!!"), "Error message !!!", 1, 2, 3);

Decorating logger with configuration

var log = LogProvider._GetLogger<Program>(builder => builder.Decorate(TestConfiguration.GetSection("Logging")))

where json format is:

{
  "Logging": {
    "LogLevel": { // All providers, LogLevel applies to all the enabled providers.
      "Default": "Error", // Default logging, Error and higher.
      "Microsoft": "Warning" // All Microsoft* categories, Warning and higher.
    },
    "Debug": { // Debug provider.
      "LogLevel": {
        "Default": "Information", // Overrides preceding LogLevel:Default setting.
        "Microsoft.Hosting": "Trace" // Debug:Microsoft.Hosting category.
      }
    },
    "EventSource": { // EventSource provider
      "LogLevel": {
        "Default": "Warning" // All categories of EventSource provider.
      }
    }
  }
}

More about log formatter Creating logger using dependency injection

 // Define loggers
var loggerTypes = new[]
    { typeof(LogAdapter<TargetClassA>), typeof(LogAdapter<TargetClassB>) };

// Call constructor, decorate optional
var logProvider = new LogProvider(loggerTypes,
    builder => builder.Decorate(TestConfiguration.GetSection("Logging")));
    
// Call loggers
var classAlogger = logProvider.GetLogger<TargetClass1>()
var classBlogger = logProvider.GetLogger<TargetClass1>()

Integrating log4net using log4Net-aspNetCore nuget

var logger = LogProvider._GetLogger<LogProviderTest>(builder => 
            builder.Decorate(TestConfiguration.GetSection("Logging"))
                .AddLog4Net("log4net.config"));
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2022.11.5.2 946 11/5/2022
2022.11.4.1 401 11/4/2022
2022.11.3.1 413 11/3/2022
2022.11.2.2 419 11/2/2022
2022.11.1.14 414 11/1/2022
2022.11.1.8 405 11/1/2022
2022.11.1.1 398 11/1/2022
2022.10.28.5 428 10/28/2022