Logging extensions for the PsdFramework.ModularWpf framework.
$ dotnet add package PsdFramework.ModularWpf.LoggingPsdFramework.ModularWpf framework.It can only be configured through the IConfiguration interface, usually through the appsettings.json file.
The limitations are set for the sake of simplicity.
{
"ModularLoggers": [
{
"Sink": "File",
"Path": "./logs/general.log",
"MinimumLevel": "Information",
"AllowedNamespaces": [ "ModularWpf" ]
},
{
"Sink": "Console",
"MinimumLevel": "Trace"
}
]
}
$RunningProjectName - the name of the running project (use-case: "AllowedNamespaces": [ "$RunningProjectName" ])serviceCollection.AddLogging(builder => {
builder.AddPsdFramework(configuration); // configuration is IConfiguration instance
});