예제 #1
0
        private void ProcessArgs(string[] args)
        {
            foreach (var arg in args)
            {
                switch (arg)
                {
                case var val when val.StartsWith("-loglevel=", true, CultureInfo.InvariantCulture):
                    string value = SplitArg(arg);

                    LogLevel level = LoggerHelper.GetLogLevel(value);
                    LoggerHelper.AdjustLogLevel(level);

                    break;
                }
            }
        }