LogsByBrady 1.1.1
See the version list below for details.
dotnet add package LogsByBrady --version 1.1.1
NuGet\Install-Package LogsByBrady -Version 1.1.1
<PackageReference Include="LogsByBrady" Version="1.1.1" />
paket add LogsByBrady --version 1.1.1
#r "nuget: LogsByBrady, 1.1.1"
// Install LogsByBrady as a Cake Addin
#addin nuget:?package=LogsByBrady&version=1.1.1
// Install LogsByBrady as a Cake Tool
#tool nuget:?package=LogsByBrady&version=1.1.1
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 | Versions 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. |
-
net8.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Data.SqlClient (>= 5.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.