Beispiel #1
0
		private LogLevels()
		{
			InvalidLogLevel = new LogLevelInfo(LogLevel.None, Color.IndianRed);

			LogLevelInfos = new LogLevelInfo[]
			{
				new LogLevelInfo(LogLevel.Trace, "Trace", Color.Gray, 10000, 0, 10000),
				new LogLevelInfo(LogLevel.Debug, "Debug", Color.Black, 30000, 10001, 30000),
				new LogLevelInfo(LogLevel.Info, "Info", Color.Green, 40000, 30001, 40000),
				new LogLevelInfo(LogLevel.Warn, "Warn", Color.Orange, 60000, 40001, 60000),
				new LogLevelInfo(LogLevel.Error, "Error", Color.Red, 70000, 60001, 70000),
				new LogLevelInfo(LogLevel.Fatal, "Fatal", Color.Purple, 110000, 70001, 110000),
			};
		}
Beispiel #2
0
		private UserSettings()
		{
			// Set default values
			_logLevelInfo = LogLevels.Instance[(int)LogLevel.Trace];
		}