Beispiel #1
0
 public static int set_log_file(string log_file)
 {
     if (System.Environment.Is64BitProcess)
     {
         return(MLModuleLibrary64.set_log_file(log_file));
     }
     else
     {
         return(MLModuleLibrary32.set_log_file(log_file));
     }
 }
Beispiel #2
0
        public static int set_log_file(string log_file)
        {
            switch (PlatformHelper.get_library_environment())
            {
            case LibraryEnvironment.x64:
                return(MLModuleLibrary64.set_log_file(log_file));

            case LibraryEnvironment.x86:
                return(MLModuleLibrary32.set_log_file(log_file));

            case LibraryEnvironment.Linux:
                return(MLModuleLibraryLinux.set_log_file(log_file));

            case LibraryEnvironment.MacOS:
                return(MLModuleLibraryMac.set_log_file(log_file));
            }

            return((int)CustomExitCodes.GENERAL_ERROR);
        }