Imato.CLR.Logger 1.0.0

dotnet add package Imato.CLR.Logger --version 1.0.0
NuGet\Install-Package Imato.CLR.Logger -Version 1.0.0
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="Imato.CLR.Logger" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Imato.CLR.Logger --version 1.0.0
#r "nuget: Imato.CLR.Logger, 1.0.0"
#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.
// Install Imato.CLR.Logger as a Cake Addin
#addin nuget:?package=Imato.CLR.Logger&version=1.0.0

// Install Imato.CLR.Logger as a Cake Tool
#tool nuget:?package=Imato.CLR.Logger&version=1.0.0
Imato.CLR.Logger

Log events in MS SQL CLR functions and procedures

Examples

Send log events to output

using Microsoft.SqlServer.Server;
using System.Data.SqlClient;
using Imato.CLR.Logger;

public class Procedures
{
    [SqlProcedure]
    public static void SameProcesure(string param1)
    {
        using (var log = new Logger(LogLevel.Info))
        {
            log.Info($"Start SameProcesure with param1 = {param1}");
            try
            {
                var arr = new string[1];
                log.Info($"{arr[1]}");
            }
            catch(Exception ex)
            {
                log.Error(ex);
            }

            log.Info("End SameProcesure");
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Imato.CLR.Logger:

Package Downloads
Imato.CLR.ParallelRunner

Run MS SQL procedures in parallel process

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 235 8/15/2022