示例#1
0
文件: Stralet.cs 项目: ongbe/tqapi
        public void Log(LogLevel level, String str)
        {
            int l = 0;

            switch (level)
            {
            case LogLevel.INFO: l = 0; break;

            case LogLevel.WARNING: l = 1; break;

            case LogLevel.ERROR: l = 2; break;

            case LogLevel.FATAL: l = 3; break;
            }
            TqsDll.tqs_sc_log(this.handle, l, str);
        }
示例#2
0
文件: Stralet.cs 项目: acqusta/tqapi
        public void Log(LogSeverity severity, String str)
        {
            int l = 0;

            switch (severity)
            {
            case LogSeverity.INFO: l = 0; break;

            case LogSeverity.WARNING: l = 1; break;

            case LogSeverity.ERROR: l = 2; break;

            case LogSeverity.FATAL: l = 3; break;
            }
            TqsDll.tqs_sc_log(this.handle, l, str);
        }