예제 #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);
        }