using System; using System.Collections.Generic; using System.Text; using PluginInterfaces; using DotnetCenter.LogTypes; namespace DotnetCenter { public class LogFactory { private static LogFactory handle; /// /// Constructor privado (Singleton) /// private LogFactory() { } /// /// Obtiene la única instancia de la factoría /// /// public static LogFactory GetInstance() { if (handle == null) handle = new LogFactory(); return handle; } /// /// Crea un tipo de log u otro /// /// /// public ILog CreateLog(string FactoryType) { ILog log = null; switch (FactoryType) { case "File": log = new FileLog(); break; } return log; } } }