Cysharp / ZLogger

Zero Allocation Text/Structured Logger for .NET with StringInterpolation and Source Generator, built on top of a Microsoft.Extensions.Logging.
MIT License
1.14k stars 80 forks source link

Configuring logging from external config #21

Closed robertmircea closed 3 years ago

robertmircea commented 3 years ago

Is there any support or at least some example on how to allow configuring logging parameters or output providers from external config file like appsettings.json?

It is useful for allowing app admins to configure the logging (ex. rolling file pattern, format, size, etc) according to their rules.

neuecc commented 3 years ago

can not map directly, use IOption and parse manually and set from it.