src/EasyNet.Comment.Log4Net/IocContainerContextExtensions.cs
/// <summary>Use Log4Net as the logger.
/// </summary>
/// <returns></returns>
Use Log4Net as the logger.
Use Log4Net as the logger .
public static IocContainerContext UseLog4Net(this IocContainerContext configuration, string configFile, string loggerRepository = "NetStandardRepository")
        {
            configuration.Register<ILoggerFactory, Log4NetLoggerFactory>(new Log4NetLoggerFactory(configFile, loggerRepository));
            return configuration;
        }
public static IocContainerContext UseLog4Net ( this IocContainerContext configuration , string configFile , string loggerRepository = " " ) { configuration . Register < ILoggerFactory , Log4NetLoggerFactory > ( new Log4NetLoggerFactory ( configFile , loggerRepository ) ) ; return configuration ; }
Use Log4Net as the logger.
Use Log4Net as the logger .
None
IocContainerContext
this
configFile
string
loggerRepository
string