Changeset View
Changeset View
Standalone View
Standalone View
source/creator/creator_args.c
| Context not available. | |||||
| BLI_argsPrintArgDoc(ba, "--log-level"); | BLI_argsPrintArgDoc(ba, "--log-level"); | ||||
| BLI_argsPrintArgDoc(ba, "--log-show-basename"); | BLI_argsPrintArgDoc(ba, "--log-show-basename"); | ||||
| BLI_argsPrintArgDoc(ba, "--log-show-backtrace"); | BLI_argsPrintArgDoc(ba, "--log-show-backtrace"); | ||||
| BLI_argsPrintArgDoc(ba, "--log-show-timestamp"); | |||||
| BLI_argsPrintArgDoc(ba, "--log-file"); | BLI_argsPrintArgDoc(ba, "--log-file"); | ||||
| BLI_argsPrintArgDoc(ba, "--log-console"); | |||||
| printf("\n"); | printf("\n"); | ||||
| printf("Debug Options:\n"); | printf("Debug Options:\n"); | ||||
| Context not available. | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| static const char arg_handle_log_show_timestamp_set_doc[] = | |||||
| "\n\tShow a timestamp for each log message." | |||||
| ; | |||||
| static int arg_handle_log_show_timestamp_set(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | |||||
| { | |||||
| CLG_output_use_timestamp_set(true); | |||||
| return 0; | |||||
| } | |||||
| static const char arg_handle_log_console_set_doc[] = | |||||
| "\n\tSend log output to the console." | |||||
| ; | |||||
| static int arg_handle_log_console_set(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data)) | |||||
| { | |||||
| CLG_output_use_console_set(true); | |||||
| return 0; | |||||
| } | |||||
| static const char arg_handle_log_file_set_doc[] = | static const char arg_handle_log_file_set_doc[] = | ||||
| "<filename>\n" | "<filename>\n" | ||||
| "\n" | "\n" | ||||
| Context not available. | |||||
| BLI_argsAdd(ba, 1, NULL, "--log-level", CB(arg_handle_log_level_set), ba); | BLI_argsAdd(ba, 1, NULL, "--log-level", CB(arg_handle_log_level_set), ba); | ||||
| BLI_argsAdd(ba, 1, NULL, "--log-show-basename", CB(arg_handle_log_show_basename_set), ba); | BLI_argsAdd(ba, 1, NULL, "--log-show-basename", CB(arg_handle_log_show_basename_set), ba); | ||||
| BLI_argsAdd(ba, 1, NULL, "--log-show-backtrace", CB(arg_handle_log_show_backtrace_set), ba); | BLI_argsAdd(ba, 1, NULL, "--log-show-backtrace", CB(arg_handle_log_show_backtrace_set), ba); | ||||
| BLI_argsAdd(ba, 1, NULL, "--log-show-timestamp", CB(arg_handle_log_show_timestamp_set), ba); | |||||
| BLI_argsAdd(ba, 1, NULL, "--log-file", CB(arg_handle_log_file_set), ba); | BLI_argsAdd(ba, 1, NULL, "--log-file", CB(arg_handle_log_file_set), ba); | ||||
| BLI_argsAdd(ba, 1, NULL, "--log-console", CB(arg_handle_log_console_set), ba); | |||||
| BLI_argsAdd(ba, 1, "-d", "--debug", CB(arg_handle_debug_mode_set), ba); | BLI_argsAdd(ba, 1, "-d", "--debug", CB(arg_handle_debug_mode_set), ba); | ||||
| Context not available. | |||||