Пример #1
0
        public static void SetLogLevel(LogLevel logLevel)
        {
            switch (logLevel)
            {
            case LogLevel.Fatal:
                ChatClient.SetLogLevel(0);
                break;

            case LogLevel.Critical:
                ChatClient.SetLogLevel(1);
                break;

            case LogLevel.Warning:
                ChatClient.SetLogLevel(2);
                break;

            case LogLevel.Info:
                ChatClient.SetLogLevel(3);
                break;

            case LogLevel.Debug:
                ChatClient.SetLogLevel(4);
                break;
            }
        }
Пример #2
0
        public static void SetLogLevel(LogLevel logLevel)
        {
            switch (logLevel)
            {
            case LogLevel.Silent:
                ChatClient.SetLogLevel(8);
                break;

            case LogLevel.Fatal:
                ChatClient.SetLogLevel(7);
                break;

            case LogLevel.Critical:
                ChatClient.SetLogLevel(6);
                break;

            case LogLevel.Warning:
                ChatClient.SetLogLevel(5);
                break;

            case LogLevel.Info:
                ChatClient.SetLogLevel(4);
                break;

            case LogLevel.Debug:
                ChatClient.SetLogLevel(3);
                break;

            case LogLevel.Verbose:
                ChatClient.SetLogLevel(2);
                break;
            }
        }