Exemple #1
0
        public static ILogManager Configure(IEnumerable <IAppender> appenders, ZeroLogInitializationConfig initializationConfig)
        {
            var config = new ZeroLogBasicConfiguration
            {
                Appenders = appenders.ToList()
            };

            if (initializationConfig != null)
            {
                config.ApplyInitializationConfig(initializationConfig);
            }

            return(Configure(config));
        }
Exemple #2
0
 internal void ApplyInitializationConfig(ZeroLogInitializationConfig config)
 {
     LogEventQueueSize        = config.LogEventQueueSize;
     LogEventBufferSize       = config.LogEventBufferSize;
     LogEventArgumentCapacity = config.LogEventArgumentCapacity;
 }