AppLogger.Common
1.0.8
dotnet add package AppLogger.Common --version 1.0.8
NuGet\Install-Package AppLogger.Common -Version 1.0.8
<PackageReference Include="AppLogger.Common" Version="1.0.8" />
paket add AppLogger.Common --version 1.0.8
#r "nuget: AppLogger.Common, 1.0.8"
// Install AppLogger.Common as a Cake Addin
#addin nuget:?package=AppLogger.Common&version=1.0.8
// Install AppLogger.Common as a Cake Tool
#tool nuget:?package=AppLogger.Common&version=1.0.8
File Logging Usage:
DefaultLogger.Log(string); Logger will create folder with "AppLogs" at root folder.
SQL Logger
Configure: Configure at the starting of appstart(Global, appconfig, etc) 1.AuditDBConfiguration.SQLConnection(connectionstringKey); Uasge: Action : [SQLActionAudit] for MVC controller, or [SQLActionAPIAudit] for API controller as filter attribute Service: AppAudit.Log(new Audit(){ }); // Fill object
Connection string be like: <add name="connectionstringName" connectionString="server=serverpath;database=dbname;uid=username;password=password" providerName="System.data.sqlclient" />
For SQL logger should configure with connection string key at the top of appstart file
Mongo Logger
Configur: Configure at the starting of appstart(Global, appconfig, etc) 1.AuditDBConfiguration.MongoDBConfig(connectionstringKey); Uasge: Action : [MongoActionAudit] for MVC controller, or [MongoActionAPIAudit] for API controller as filter attribute Service: AppMongoAudit.Log(new Audit(){ }); // Fill object
Connection string like: <add name="connectionKeyName" connectionString="mongodb://localhost:2717/Auditing" />
For Mongo logger should configure with connection string key at the top of appstart file
DocumentDB Logger
Configur: Configure at the starting of appstart(Global, appconfig, etc) 1.AuditDBConfiguration.DocumentDBConfig(connectionstringKey); Uasge: Action : [CosmosActionAudit] for MVC controller, or [CosmosActionApiAudit] for API controller as filter attribute Service: CosmosAudit.Log(new Audit(){ }); // Fill object
Connection string like: <add name="connectionKeyName" connectionString="AccountEndpoint=endpointurl;AccountKey=azureAccountKey;Database=Auditing" />
For DocumentDB logger should configure with connection string key at the top of appstart file
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Dapper (>= 1.60.6)
- Microsoft.AspNet.Mvc (>= 5.2.4)
- Microsoft.AspNet.WebApi.Core (>= 5.2.3)
- Microsoft.AspNetCore.Http (>= 2.0.0)
- Microsoft.Azure.DocumentDB (>= 2.5.1)
- mongocsharpdriver (>= 2.8.1)
- System.Threading (>= 4.3.0)
- System.Threading.Tasks (>= 4.3.0)
- System.Threading.Tasks.Parallel (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Summary of changes made in this release of the package.