public static Logger build(FileSystemAccess file_system, ConfigurationPropertyHolder configuration_property_holder) { IList <Logger> loggers = new List <Logger>(); Logger nant_logger = new NAntLogger(configuration_property_holder); loggers.Add(nant_logger); if (configuration_property_holder.MSBuildTask != null) { Logger msbuild_logger = new MSBuildLogger(configuration_property_holder); loggers.Add(msbuild_logger); } Logger log4net_logger = new Log4NetLogger(configuration_property_holder.Log4NetLogger); loggers.Add(log4net_logger); //Logger file_logger = new FileLogger( // combine_items_into_one_path( // file_system, // known_folders.change_drop.folder_full_path, // string.Format("{0}_{1}.log", ApplicationParameters.name, known_folders.change_drop.folder_name) // ), // file_system // ); //loggers.Add(file_logger); return(new MultipleLogger(loggers)); }
protected IContainer build_the_container() { IWindsorContainer windsor_container = new WindsorContainer(); infrastructure.logging.ILog nant_logger = new NAntLogger(this); infrastructure.logging.ILog log4net_logger = new Log4NetLogger(the_logger); infrastructure.logging.ILog multi_logger = new MultipleLogger(new List<infrastructure.logging.ILog> { nant_logger, log4net_logger }); windsor_container.Kernel.AddComponentInstance<infrastructure.logging.ILog>(multi_logger); windsor_container.AddComponent<IFileSystemAccess, WindowsFileSystemAccess>(); windsor_container.AddComponent<ILogFactory, MultipleLoggerLogFactory>(); return new infrastructure.containers.custom.WindsorContainer(windsor_container); }
private IContainer build_the_container() { IWindsorContainer windsor_container = new WindsorContainer(); infrastructure.logging.ILog nant_logger = new NAntLogger(this); infrastructure.logging.ILog log4net_logger = new Log4NetLogger(the_logger); infrastructure.logging.ILog multi_logger = new MultipleLogger(new List <infrastructure.logging.ILog> { nant_logger, log4net_logger }); windsor_container.Kernel.AddComponentInstance <infrastructure.logging.ILog>(multi_logger); windsor_container.AddComponent <IFileSystemAccess, WindowsFileSystemAccess>(); windsor_container.AddComponent <ILogFactory, MultipleLoggerLogFactory>(); return(new infrastructure.containers.custom.WindsorContainer(windsor_container)); }