/// <summary> /// Registers the logger. /// </summary> /// <remarks> /// Automatically enables the logging. /// </remarks> /// <param name="logger">The logger.</param> public static void RegisterLogger(ILogger logger) { if (!IsLoggingEnabled()) { EnableLogging(); } DLogger.Register(logger); }