public Logger(LogDatabaseTypes types) { //Choose the DAL type switch(types) { case LogDatabaseTypes.SqlServer: _dal= new SqlServer(); break; case LogDatabaseTypes.WindowsEventLog: _dal= new WindowsEventLog(); break; default: throw new Exception("LogDatabaseType Not Found"); } }
public Logger() { //Defaults to sqlserver for now... _dal = new SqlServer(); }