- App Logger entfernt und durch die Implementierung des `ILogger`-Interfaces ersetzt, um eine konsistente Logging-Architektur zu gewährleisten. - API für die Nutzung von NLog konfiguriert, um eine leistungsstarke und flexible Logging-Lösung bereitzustellen. - Konfigurationsdateien und Setup-Anpassungen für die Integration von NLog in die API vorgenommen.
22 lines
705 B
C#
22 lines
705 B
C#
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
|
|
namespace HRD.WebApi.DAL.Middleware
|
|
{
|
|
public class WebApiMiddlewareOptions
|
|
{
|
|
public string AssemblyVersion { get; set; } = String.Empty;
|
|
public string AssemblyName { get; set; } = String.Empty;
|
|
public string ClientVersion { get; set; }
|
|
|
|
public string Connectionstring { get; set; } = String.Empty;
|
|
|
|
//Logger
|
|
public string NlogLogDirectory { get; set; } = String.Empty;
|
|
|
|
public string NlogConnectionstring { get; set; } = String.Empty;
|
|
|
|
public LogLevel NlogFileLogLevel { get; set; } = LogLevel.Error;
|
|
public LogLevel NlogDBLogLevel { get; set; } = LogLevel.Error;
|
|
}
|
|
} |