/// <summary>
        /// Build the logging configuration and assign a log manager.
        /// </summary>
        /// <returns>Generated log manager</returns>
        /// <remarks>
        /// Call this method to generate the configuration. It will also assign the LogManager so you can start
        /// logging after calling this method.
        /// </remarks>
        public FluentLogManager Build()
        {
            var logManager = new FluentLogManager();

            logManager.AddNamespaceFilters(_namespaces);
            logManager.AddTargets(_targets);
            LogManager.Assign(logManager);
            return(logManager);
        }
Пример #2
0
 /// <summary>
 /// Build the logging configuration and assign a log manager.
 /// </summary>
 /// <returns></returns>
 /// <remarks>
 /// Call this method to generate the configuration. It will also assign a LogManager which means that
 /// everything is set to start using the logging system.
 /// </remarks>
 public Configure Build()
 {
     var logManager = new FluentLogManager();
     logManager.AddNamespaceFilters(_namespaces);
     Contract.Assume(_targets != null);
     logManager.AddTargets(_targets);
     LogManager.Assign(logManager);
     return Configure.Griffin;
 }
 /// <summary>
 /// Build the logging configuration and assign a log manager.
 /// </summary>
 /// <returns>Generated log manager</returns>
 /// <remarks>
 /// Call this method to generate the configuration. It will also assign the LogManager so you can start 
 /// logging after calling this method.
 /// </remarks>
 public FluentLogManager Build()
 {
     var logManager = new FluentLogManager();
     logManager.AddNamespaceFilters(_namespaces);
     logManager.AddTargets(_targets);
     LogManager.Assign(logManager);
     return logManager;
 }