public static SourceLevels ToSourceLevel(ConfigLogLevel cll) { switch (cll) { case ConfigLogLevel.Off: return(SourceLevels.Off); case ConfigLogLevel.Error: return(SourceLevels.Error); case ConfigLogLevel.Information: return(SourceLevels.Information); case ConfigLogLevel.Verbose: return(SourceLevels.Verbose); default: throw new Exception("Error Unkown Log Level"); } }
private void Init() { Hdd = DEV9Header.HDD_DEF; HddSize = 8 * 1024; Eth = DEV9Header.ETH_DEF; EthType = EthAPI.Winsock; EthEnable = true; HddEnable = false; DirectConnectionSettings = new ConfigDirectIP(); SocketConnectionSettings = new ConfigSocketIP(); EnableLogging = new ConfigLogging(); LogLevelConsole = ConfigLogLevel.Information; LogLevelFile = ConfigLogLevel.Information; Hosts = new HashSet <ConfigHost>(); Hosts.Add(new ConfigHost() { Desc = "Set DNS to 192.0.2.1 to use this host list", URL = "www.example.com", IP = "0.0.0.0", Enabled = false }); }