GitHub - invertedsoftware/InvertedSoftware.PLogger.Core: Implementation of PLogger for .NET Core (original) (raw)
Add: loggerFactory.AddPLogger(Configuration);
In: public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
},
"PLogger": {
"PLogType": "file",
"PLogEnabled": true,
"BaseNameFile": "plogger.txt",
"PLogFileMaxSizeKB": 1024,
"PLogFileMessageTemplate": "{0}",
"StringConnection": "StringConnection",
"StoredProcedureName": "AddError",
"MessageParameterName": "@ErrorName"
}
},
"AllowedHosts": "*"
}