LogsByBrady 1.2.0

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

// Install LogsByBrady as a Cake Tool
#tool nuget:?package=LogsByBrady&version=1.2.0

NuGet Publish

LogsByBrady

Preview

LogsByBrady is a all-in-one logging framework that includes logging functionality for flat files in different formats. Future versions of LogsByBrady will include logging for other logging locations such as SQL Server.

Flat Files

Dependency Injection (DI)

builder.Services.AddBradysLogger()

By default this will set the default log path as user's desktop and the format as a text file.

DI Options

.WithPath("C:/temp");

WithPath will set the log path, using a relative path

.UsingJsonFormat();

Using JsonFormat will set the log format to json format

.UsingTxtFormat();

Using JsonFormat will set the log format to txt format

.UsingAllFormats();

Uses all format options for log files.

SQL Server Logging

Dependency Injection (DI)

builder.Services.AddBradysLogger(option =>
{
    option.ConnectionString = "";
});

This will inject logger into the program using and automatically create a logs table in the database.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
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
1.2.0 68 4/20/2024
1.1.1 74 4/16/2024
1.0.0 91 4/15/2024
0.0.1 79 4/16/2024