Currently Changes Http / Https proxy support has been added , To disguise the Ip address or if a proxy service is required IOptions pattern has been implemented. Better options handling Extensions methods have been implemented to make Program.cs smaller Added a global logger for static and extension methods appsettings.json now contains "default" data for the applications and proxy settings. The Docker variables are also specified above it. This also fixes the bug that you have to set all variables, although you only want to use Sonarr, for example
20 lines
805 B
C#
20 lines
805 B
C#
namespace UmlautAdaptarr.Utilities
|
|
{
|
|
/// <summary>
|
|
/// Service for providing a static logger to log errors and information.
|
|
/// The GlobalStaticLogger is designed to provide a static logger that can be used to log errors and information.
|
|
/// It facilitates logging for both static classes and extension methods.
|
|
/// </summary>
|
|
public static class GlobalStaticLogger
|
|
{
|
|
|
|
public static ILogger Logger;
|
|
|
|
/// <summary>
|
|
/// Initializes the GlobalStaticLogger with the provided logger factory.
|
|
/// </summary>
|
|
/// <param name="loggerFactory">The ILoggerFactory instance used to create loggers.</param>
|
|
public static void Initialize(ILoggerFactory loggerFactory) => Logger = loggerFactory.CreateLogger("GlobalStaticLogger");
|
|
}
|
|
}
|