public static void AddWarnLog(this string log, Type logger, params object[] args) => CommonLoggingHelper.UseLogger(logger, x => x.LogWarning(log, args));
public static void AddFatalLog(this string log, Type logger, params object[] args) => CommonLoggingHelper.UseLogger(logger, x => x.LogCritical(log, args));
public static void AddInfoLog(this string log, Type logger, params object[] args) => CommonLoggingHelper.UseLogger(logger, x => x.LogInformation(log, args));
public static void AddErrorLog(this string log, string logger, params object[] args) => CommonLoggingHelper.UseLogger(logger, x => x.LogError(log, args));
public static void AddLog(this Exception e, Type logger, params object[] args) => CommonLoggingHelper.UseLogger(logger, x => x.LogError(e, e.Message, args));
public static void UseLogger <T>(Action <ILogger> func) => CommonLoggingHelper.UseLogger(typeof(T).FullName, func);
public static void UseLogger(Type tp, Action <ILogger> func) => CommonLoggingHelper.UseLogger(tp.FullName, func);