CoreLogs 1.0.9.1
dotnet add package CoreLogs --version 1.0.9.1
NuGet\Install-Package CoreLogs -Version 1.0.9.1
<PackageReference Include="CoreLogs" Version="1.0.9.1" />
paket add CoreLogs --version 1.0.9.1
#r "nuget: CoreLogs, 1.0.9.1"
// Install CoreLogs as a Cake Addin #addin nuget:?package=CoreLogs&version=1.0.9.1 // Install CoreLogs as a Cake Tool #tool nuget:?package=CoreLogs&version=1.0.9.1
Removed following packages from the version 1.0.0 Microsoft.Extensions.Configuration.FileExtensions Microsoft.Extensions.FileProviders.Abstractions Newtonsoft.Json
Handled few exceptions
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. |
-
net5.0
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
- System.Data.SqlClient (>= 4.5.3)
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.0.9.1 | 105 | 9/3/2023 |
This package is used to add logs to file and database for asp.net core applications.
You need to add below two Keys in appsettings.json file.
"PLogFilePath": "local file path",
"PLogConnectionString": "connection string".
1) Remember for the file path you need to remove readonly access to the folder.
2) For db logs you need to create a table with the name "Logs" with columns (ID(Primary Key and auto increment), LogType, Message, CreatedOn).
3) Use namespace using PLog;
4) Use below syntax to log the errors.
Logger.Error("this is test Error log");
Logger.Info("this is test Info log");
Logger.Warning("this is test Warning log");