|
Blender V5.3
|
#include <cassert>#include <cstdarg>#include <cstdint>#include <cstdio>#include <cstdlib>#include <cstring>#include <mutex>#include <set>#include <cinttypes>#include <algorithm>#include "MEM_guardedalloc.h"#include "CLG_log.h"Go to the source code of this file.
Classes | |
| struct | CLG_IDFilter |
| struct | CLogContext |
| struct | CLogStringBuf |
Macros | |
| #define | __STDC_FORMAT_MACROS |
| #define | STREQ(a, b) |
| #define | STREQLEN(a, b, n) |
| #define | PATHSEP_CHAR '/' |
Functions | |
Global LogRef Single Linked List | |
| static CLG_LogRef ** | clg_all_refs_p () |
Context Type Access | |
| static bool | clg_ctx_filter_check (CLogContext *ctx, const char *identifier) |
| static CLG_LogType * | clg_ctx_type_find_by_name (CLogContext *ctx, const char *identifier) |
| static CLG_LogType * | clg_ctx_type_register (CLogContext *ctx, const char *identifier) |
| static void | clg_ctx_error_action (CLogContext *ctx) |
| static void | clg_ctx_fatal_action (CLogContext *ctx) |
| static void | clg_ctx_backtrace (CLogContext *ctx) |
| static uint64_t | clg_timestamp_ticks_get () |
Logging API | |
| static void | write_timestamp (CLogStringBuf *cstr, const uint64_t timestamp_tick_start) |
| static void | write_memory (CLogStringBuf *cstr) |
| static void | write_level (CLogStringBuf *cstr, enum CLG_Level level, bool use_color) |
| static void | write_type (CLogStringBuf *cstr, const CLG_LogType *lg) |
| static void | write_file_line_fn (CLogStringBuf *cstr, const char *file_line, const char *fn, const bool use_basename, const bool use_color) |
| void | CLG_log_str (const CLG_LogType *lg, enum CLG_Level level, const char *file_line, const char *fn, const char *message) |
| void | CLG_logf (const CLG_LogType *lg, enum CLG_Level level, const char *file_line, const char *fn, const char *format,...) |
| void | CLG_log_raw (const CLG_LogType *lg, const char *message) |
Logging Context API | |
| static void | CLG_ctx_output_set (CLogContext *ctx, void *file_handle) |
| static void | CLG_ctx_output_use_source_set (CLogContext *ctx, int value) |
| static void | CLG_ctx_output_use_basename_set (CLogContext *ctx, int value) |
| static void | CLG_ctx_output_use_timestamp_set (CLogContext *ctx, int value) |
| static void | CLG_ctx_output_use_memory_set (CLogContext *ctx, int value) |
| static void | CLT_ctx_error_fn_set (CLogContext *ctx, void(*error_fn)(void *file_handle)) |
| static void | CLG_ctx_fatal_fn_set (CLogContext *ctx, void(*fatal_fn)(void *file_handle)) |
| static void | CLG_ctx_backtrace_fn_set (CLogContext *ctx, void(*backtrace_fn)(void *file_handle)) |
| static void | clg_ctx_type_filter_append (CLG_IDFilter **flt_list, const char *type_match, int type_match_len) |
| static void | CLG_ctx_type_filter_exclude (CLogContext *ctx, const char *type_match, int type_match_len) |
| static void | CLG_ctx_type_filter_include (CLogContext *ctx, const char *type_match, int type_match_len) |
| static void | CLG_ctx_level_set (CLogContext *ctx, CLG_Level level) |
| static CLogContext * | CLG_ctx_init () |
| static void | CLG_ctx_free (CLogContext *ctx) |
Logging Reference API | |
Use to avoid look-ups each time. | |
| void | CLG_logref_register (CLG_LogRef *clg_ref) |
| void | CLG_logref_list_all (void(*callback)(const char *identifier, void *user_data), void *user_data) |
| void | CLG_logref_init (CLG_LogRef *clg_ref) |
| int | CLG_color_support_get (CLG_LogRef *clg_ref) |
Variables | |
Internal Types | |
| static std::mutex | LOG_MUTEX |
Mini Buffer Functionality | |
Use so we can do a single call to write. | |
| #define | CLOG_BUF_LEN_INIT 512 |
| static void | clg_str_init (CLogStringBuf *cstr, char *buf_stack, uint buf_stack_len) |
| static void | clg_str_free (CLogStringBuf *cstr) |
| static void | clg_str_reserve (CLogStringBuf *cstr, const uint len) |
| static void | clg_str_append_with_len (CLogStringBuf *cstr, const char *str, const uint len) |
| static void | clg_str_append (CLogStringBuf *cstr, const char *str) |
| static void | clg_str_append_char (CLogStringBuf *cstr, const char c, const uint len) |
| static void | clg_str_vappendf (CLogStringBuf *cstr, const char *format, va_list args) |
| static void | clg_str_indent_multiline (CLogStringBuf *cstr, const uint indent_len) |
Internal Utilities | |
| #define | COLOR_LEN (COLOR_RESET + 1) |
| enum | eCLogColor { COLOR_DEFAULT , COLOR_RED , COLOR_GREEN , COLOR_YELLOW , COLOR_DIM , COLOR_RESET } |
| static const char * | clg_color_table [COLOR_LEN] = {nullptr} |
| static void | clg_color_table_init (bool use_color) |
| static const char * | clg_level_as_text (enum CLG_Level level) |
| static enum eCLogColor | clg_level_to_color (enum CLG_Level level) |
Public Logging API | |
Currently uses global context. | |
| static struct CLogContext * | g_ctx = nullptr |
| static bool | g_quiet = false |
| void | CLG_init () |
| void | CLG_exit () |
| void | CLG_output_set (void *file_handle) |
| void | CLG_output_use_source_set (int value) |
| void | CLG_output_use_basename_set (int value) |
| void | CLG_output_use_timestamp_set (int value) |
| void | CLG_output_use_memory_set (int value) |
| void | CLG_error_fn_set (void(*error_fn)(void *file_handle)) |
| void | CLG_fatal_fn_set (void(*fatal_fn)(void *file_handle)) |
| void | CLG_backtrace_fn_set (void(*fatal_fn)(void *file_handle)) |
| void | CLG_type_filter_exclude (const char *type_match, int type_match_len) |
| void | CLG_type_filter_include (const char *type_match, int type_match_len) |
| void | CLG_level_set (CLG_Level level) |
| void | CLG_quiet_set (bool quiet) |
| bool | CLG_quiet_get () |
| #define CLOG_BUF_LEN_INIT 512 |
Definition at line 132 of file clog.cc.
Referenced by CLG_log_str(), and CLG_logf().
| #define COLOR_LEN (COLOR_RESET + 1) |
Definition at line 296 of file clog.cc.
Referenced by clg_color_table_init().
| enum eCLogColor |
|
static |
Definition at line 116 of file clog.cc.
References clg_all_refs_p().
Referenced by clg_all_refs_p(), CLG_ctx_free(), CLG_logref_list_all(), and CLG_logref_register().
| void CLG_backtrace_fn_set | ( | void(* | fatal_fn )(void *file_handle) | ) |
Definition at line 917 of file clog.cc.
References CLG_backtrace_fn_set(), CLG_ctx_backtrace_fn_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_log_show_backtrace_set(), and CLG_backtrace_fn_set().
| int CLG_color_support_get | ( | CLG_LogRef * | clg_ref | ) |
Definition at line 1008 of file clog.cc.
References CLG_color_support_get(), CLG_logref_init(), CLG_LogType::ctx, CLG_LogRef::type, and CLogContext::use_color.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_color_support_get(), blender::gpu::debug::debug_callback(), and blender::gpu::Shader::print_log().
|
static |
Definition at line 303 of file clog.cc.
References clg_color_table, clg_color_table_init(), COLOR_DEFAULT, COLOR_DIM, COLOR_GREEN, COLOR_LEN, COLOR_RED, COLOR_RESET, and COLOR_YELLOW.
Referenced by clg_color_table_init(), and CLG_init().
|
static |
Definition at line 460 of file clog.cc.
References CLogContext::callbacks, clg_ctx_backtrace(), and CLogContext::output_file.
Referenced by clg_ctx_backtrace(), CLG_log_str(), and CLG_logf().
|
static |
Definition at line 771 of file clog.cc.
References CLogContext::callbacks, and CLG_ctx_backtrace_fn_set().
Referenced by CLG_backtrace_fn_set(), and CLG_ctx_backtrace_fn_set().
|
static |
Definition at line 444 of file clog.cc.
References CLogContext::callbacks, clg_ctx_error_action(), and CLogContext::output_file.
Referenced by clg_ctx_error_action(), and CLG_logf().
|
static |
Definition at line 451 of file clog.cc.
References CLogContext::callbacks, clg_ctx_fatal_action(), and CLogContext::output_file.
Referenced by clg_ctx_fatal_action(), CLG_log_str(), and CLG_logf().
|
static |
Action on fatal level.
Definition at line 766 of file clog.cc.
References CLogContext::callbacks, and CLG_ctx_fatal_fn_set().
Referenced by CLG_ctx_fatal_fn_set(), and CLG_fatal_fn_set().
|
static |
Filter the identifier based on very basic globbing.
Definition at line 368 of file clog.cc.
References clg_ctx_filter_check(), CLG_LEVEL_INFO, CLogContext::default_type, CLogContext::filters, len(), CLG_IDFilter::match, MEM_new_array_zeroed(), CLG_IDFilter::next, STREQ, and STREQLEN.
Referenced by clg_ctx_filter_check(), and clg_ctx_type_register().
|
static |
Definition at line 829 of file clog.cc.
References clg_all_refs_p(), CLG_ctx_free(), CLogContext::filters, CLG_IDFilter::next, CLG_LogRef::next, CLG_LogType::next, and CLogContext::types.
Referenced by CLG_ctx_free(), and CLG_exit().
|
static |
Definition at line 816 of file clog.cc.
References CLG_ctx_init(), CLG_ctx_output_set(), CLG_LEVEL_WARN, CLogContext::default_type, MEM_new_zeroed(), and CLogContext::use_source.
Referenced by CLG_ctx_init(), and CLG_init().
|
static |
Definition at line 808 of file clog.cc.
References CLG_ctx_level_set(), CLogContext::default_type, CLG_LogType::next, and CLogContext::types.
Referenced by CLG_ctx_level_set(), and CLG_level_set().
|
static |
Definition at line 710 of file clog.cc.
References CLG_ctx_output_set(), CLogContext::output, CLogContext::output_file, and CLogContext::use_color.
Referenced by CLG_ctx_init(), CLG_ctx_output_set(), and CLG_output_set().
|
static |
Definition at line 741 of file clog.cc.
References CLG_ctx_output_use_basename_set(), and CLogContext::use_basename.
Referenced by CLG_ctx_output_use_basename_set(), and CLG_output_use_basename_set().
|
static |
Definition at line 754 of file clog.cc.
References CLG_ctx_output_use_memory_set(), and CLogContext::use_memory.
Referenced by CLG_ctx_output_use_memory_set(), and CLG_output_use_memory_set().
|
static |
Definition at line 736 of file clog.cc.
References CLG_ctx_output_use_source_set(), and CLogContext::use_source.
Referenced by CLG_ctx_output_use_source_set(), and CLG_output_use_source_set().
|
static |
Definition at line 746 of file clog.cc.
References CLG_ctx_output_use_timestamp_set(), clg_timestamp_ticks_get(), CLogContext::timestamp_tick_start, and CLogContext::use_timestamp.
Referenced by CLG_ctx_output_use_timestamp_set(), and CLG_output_use_timestamp_set().
|
static |
Definition at line 776 of file clog.cc.
References clg_ctx_type_filter_append(), CLG_IDFilter::match, MEM_new_zeroed(), and CLG_IDFilter::next.
Referenced by clg_ctx_type_filter_append(), CLG_ctx_type_filter_exclude(), and CLG_ctx_type_filter_include().
|
static |
Definition at line 791 of file clog.cc.
References clg_ctx_type_filter_append(), CLG_ctx_type_filter_exclude(), and CLogContext::filters.
Referenced by CLG_ctx_type_filter_exclude(), and CLG_type_filter_exclude().
|
static |
Definition at line 798 of file clog.cc.
References clg_ctx_type_filter_append(), CLG_ctx_type_filter_include(), CLG_LEVEL_INFO, CLG_LEVEL_WARN, CLogContext::default_type, and CLogContext::filters.
Referenced by CLG_ctx_type_filter_include(), and CLG_type_filter_include().
|
static |
Definition at line 415 of file clog.cc.
References clg_ctx_type_find_by_name(), CLG_LogType::next, STREQ, and CLogContext::types.
Referenced by clg_ctx_type_find_by_name(), clg_ctx_type_register(), and CLG_logref_init().
|
static |
Definition at line 425 of file clog.cc.
References assert, clg_ctx_filter_check(), clg_ctx_type_find_by_name(), clg_ctx_type_register(), CLG_LEVEL_WARN, CLG_LogType::ctx, CLogContext::default_type, CLG_LogType::identifier, CLG_LogType::level, MEM_new_zeroed(), CLG_LogType::next, and CLogContext::types.
Referenced by clg_ctx_type_register(), and CLG_logref_init().
| void CLG_error_fn_set | ( | void(* | error_fn )(void *file_handle) | ) |
Definition at line 907 of file clog.cc.
References CLG_error_fn_set(), CLT_ctx_error_fn_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_debug_exit_on_error(), and CLG_error_fn_set().
| void CLG_exit | ( | ) |
Definition at line 877 of file clog.cc.
References CLG_ctx_free(), CLG_exit(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::callback_main_atexit(), CLG_exit(), blender::bke::gtest_teardown(), main(), blender::BlendfileLoadingBaseTest::TearDownTestCase(), blender::ed::tests::TransformableTest::TearDownTestSuite(), blender::ocio::ocio_fallback_config::TearDownTestSuite(), and blender::WM_exit_ex().
| void CLG_fatal_fn_set | ( | void(* | fatal_fn )(void *file_handle) | ) |
Definition at line 912 of file clog.cc.
References CLG_ctx_fatal_fn_set(), CLG_fatal_fn_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_fatal_fn_set(), and main().
| void CLG_init | ( | ) |
Definition at line 870 of file clog.cc.
References clg_color_table_init(), CLG_ctx_init(), CLG_init(), g_ctx, and CLogContext::use_color.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_init(), blender::bke::gtest_setup(), main(), main(), blender::BlendfileLoadingBaseTest::SetUpTestCase(), blender::ed::tests::TransformableTest::SetUpTestSuite(), and blender::ocio::ocio_fallback_config::SetUpTestSuite().
|
static |
Definition at line 318 of file clog.cc.
References clg_level_as_text(), CLG_LEVEL_DEBUG, CLG_LEVEL_ERROR, CLG_LEVEL_FATAL, CLG_LEVEL_INFO, CLG_LEVEL_TRACE, and CLG_LEVEL_WARN.
Referenced by clg_level_as_text(), and write_level().
| void CLG_level_set | ( | CLG_Level | level | ) |
Definition at line 932 of file clog.cc.
References CLG_ctx_level_set(), CLG_level_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_log_level_set(), CLG_level_set(), and main().
|
static |
Definition at line 338 of file clog.cc.
References assert, CLG_LEVEL_DEBUG, CLG_LEVEL_ERROR, CLG_LEVEL_FATAL, CLG_LEVEL_INFO, clg_level_to_color(), CLG_LEVEL_TRACE, CLG_LEVEL_WARN, COLOR_DEFAULT, COLOR_RED, and COLOR_YELLOW.
Referenced by clg_level_to_color(), and write_level().
| void CLG_log_raw | ( | const CLG_LogType * | lg, |
| const char * | message ) |
Definition at line 697 of file clog.cc.
References CLG_log_raw(), CLG_LogType::ctx, and CLogContext::output.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_log_raw(), blender::gpu::shader::gpu_shader_dependency_get_resolved_source(), and blender::gpu::Shader::print_log().
| void CLG_log_str | ( | const CLG_LogType * | lg, |
| enum CLG_Level | level, | ||
| const char * | file_line, | ||
| const char * | fn, | ||
| const char * | message ) |
Definition at line 579 of file clog.cc.
References CLogContext::callbacks, clg_ctx_backtrace(), clg_ctx_fatal_action(), CLG_LEVEL_FATAL, CLG_log_str(), clg_str_append(), clg_str_free(), clg_str_indent_multiline(), clg_str_init(), CLOG_BUF_LEN_INIT, CLG_LogType::ctx, CLogStringBuf::data, CLogStringBuf::len, lock, LOG_MUTEX, CLogContext::output, CLogContext::timestamp_tick_start, CLogContext::use_basename, CLogContext::use_color, CLogContext::use_memory, CLogContext::use_source, CLogContext::use_timestamp, write_file_line_fn(), write_level(), write_memory(), write_timestamp(), and write_type().
| void CLG_logf | ( | const CLG_LogType * | lg, |
| enum CLG_Level | level, | ||
| const char * | file_line, | ||
| const char * | fn, | ||
| const char * | format, | ||
| ... ) |
Definition at line 633 of file clog.cc.
References CLogContext::callbacks, clg_ctx_backtrace(), clg_ctx_error_action(), clg_ctx_fatal_action(), CLG_LEVEL_ERROR, CLG_LEVEL_FATAL, CLG_logf(), clg_str_append(), clg_str_free(), clg_str_indent_multiline(), clg_str_init(), clg_str_vappendf(), CLOG_BUF_LEN_INIT, CLG_LogType::ctx, CLogStringBuf::data, CLogStringBuf::len, lock, LOG_MUTEX, CLogContext::output, CLogContext::timestamp_tick_start, CLogContext::use_basename, CLogContext::use_color, CLogContext::use_memory, CLogContext::use_source, CLogContext::use_timestamp, write_file_line_fn(), write_level(), write_memory(), write_timestamp(), and write_type().
| void CLG_logref_init | ( | CLG_LogRef * | clg_ref | ) |
Definition at line 981 of file clog.cc.
References atomic_cas_ptr(), clg_ctx_type_find_by_name(), clg_ctx_type_register(), CLG_logref_init(), g_ctx, CLG_LogRef::identifier, and CLG_LogRef::type.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_color_support_get(), CLG_logref_init(), blender::gpu::debug::VKDebuggingTools::init(), blender::gpu::VKBackend::is_supported(), and blender::gpu::VKBackend::supported_devices_print().
| void CLG_logref_list_all | ( | void(* | callback )(const char *identifier, void *user_data), |
| void * | user_data ) |
Definition at line 966 of file clog.cc.
References b, clg_all_refs_p(), CLG_logref_list_all(), and CLG_LogRef::next.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_list_clog_cats(), and CLG_logref_list_all().
| void CLG_logref_register | ( | CLG_LogRef * | clg_ref | ) |
Definition at line 955 of file clog.cc.
References clg_all_refs_p(), CLG_logref_register(), lock, and CLG_LogRef::next.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_LogRef::CLG_LogRef(), and CLG_logref_register().
| void CLG_output_set | ( | void * | file_handle | ) |
Definition at line 882 of file clog.cc.
References CLG_ctx_output_set(), CLG_output_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_log_file_set(), and CLG_output_set().
| void CLG_output_use_basename_set | ( | int | value | ) |
Definition at line 892 of file clog.cc.
References CLG_ctx_output_use_basename_set(), CLG_output_use_basename_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_output_use_basename_set(), main(), and main().
| void CLG_output_use_memory_set | ( | int | value | ) |
Definition at line 902 of file clog.cc.
References CLG_ctx_output_use_memory_set(), CLG_output_use_memory_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_log_show_memory_set(), CLG_output_use_memory_set(), and main().
| void CLG_output_use_source_set | ( | int | value | ) |
Definition at line 887 of file clog.cc.
References CLG_ctx_output_use_source_set(), CLG_output_use_source_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_log_show_source_set(), CLG_output_use_source_set(), and main().
| void CLG_output_use_timestamp_set | ( | int | value | ) |
Definition at line 897 of file clog.cc.
References CLG_ctx_output_use_timestamp_set(), CLG_output_use_timestamp_set(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), CLG_output_use_timestamp_set(), and main().
| bool CLG_quiet_get | ( | ) |
Definition at line 942 of file clog.cc.
References CLG_quiet_get(), and g_quiet.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_background_mode_set(), blender::bpy_op_fn_call_impl(), CLG_quiet_get(), blender::pyrna_register_class(), blender::pyrna_struct_keyframe_insert(), blender::WM_event_add_fileselect(), blender::WM_exit(), and blender::wm_operator_reports().
| void CLG_quiet_set | ( | bool | quiet | ) |
Definition at line 937 of file clog.cc.
References CLG_quiet_set(), and g_quiet.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_command_set(), blender::arg_handle_quiet_set(), blender::arg_handle_register_extension(), blender::arg_handle_register_extension_all(), blender::arg_handle_unregister_extension(), blender::arg_handle_unregister_extension_all(), and CLG_quiet_set().
|
static |
Definition at line 187 of file clog.cc.
References clg_str_append(), clg_str_append_with_len(), and str.
Referenced by CLG_log_str(), CLG_logf(), clg_str_append(), write_file_line_fn(), and write_level().
|
static |
Definition at line 192 of file clog.cc.
References clg_str_append_char(), clg_str_reserve(), CLogStringBuf::data, CLogStringBuf::len, and len().
Referenced by clg_str_append_char(), write_memory(), and write_type().
|
static |
Definition at line 175 of file clog.cc.
References clg_str_append_with_len(), clg_str_reserve(), CLogStringBuf::data, CLogStringBuf::len, len(), and str.
Referenced by clg_str_append(), clg_str_append_with_len(), write_file_line_fn(), write_memory(), write_timestamp(), and write_type().
|
static |
Definition at line 149 of file clog.cc.
References clg_str_free(), CLogStringBuf::data, and CLogStringBuf::is_alloc.
Referenced by CLG_log_str(), CLG_logf(), and clg_str_free().
|
static |
Definition at line 241 of file clog.cc.
References clg_str_indent_multiline(), CLogStringBuf::data, CLogStringBuf::is_alloc, CLogStringBuf::len, CLogStringBuf::len_alloc, and MEM_new_array_uninitialized().
Referenced by CLG_log_str(), CLG_logf(), and clg_str_indent_multiline().
|
static |
Definition at line 141 of file clog.cc.
References clg_str_init(), CLogStringBuf::data, CLogStringBuf::is_alloc, CLogStringBuf::len, and CLogStringBuf::len_alloc.
Referenced by CLG_log_str(), CLG_logf(), and clg_str_init().
|
static |
Definition at line 156 of file clog.cc.
References clg_str_reserve(), CLogStringBuf::data, CLogStringBuf::is_alloc, CLogStringBuf::len, len(), CLogStringBuf::len_alloc, MEM_new_array_uninitialized(), and MEM_realloc_uninitialized.
Referenced by clg_str_append_char(), clg_str_append_with_len(), clg_str_reserve(), and clg_str_vappendf().
|
static |
Definition at line 205 of file clog.cc.
References clg_str_reserve(), and clg_str_vappendf().
Referenced by CLG_logf(), and clg_str_vappendf().
|
static |
Definition at line 469 of file clog.cc.
References clg_timestamp_ticks_get().
Referenced by CLG_ctx_output_use_timestamp_set(), clg_timestamp_ticks_get(), and write_timestamp().
| void CLG_type_filter_exclude | ( | const char * | type_match, |
| int | type_match_len ) |
Definition at line 922 of file clog.cc.
References CLG_ctx_type_filter_exclude(), CLG_type_filter_exclude(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::arg_handle_log_set(), and CLG_type_filter_exclude().
| void CLG_type_filter_include | ( | const char * | type_match, |
| int | type_match_len ) |
Definition at line 927 of file clog.cc.
References CLG_ctx_type_filter_include(), CLG_type_filter_include(), and g_ctx.
Referenced by _CLOG_ATTR_PRINTF_FORMAT(), blender::add_log_render_filter(), blender::arg_handle_debug_gpu_set(), blender::arg_handle_debug_mode_cycles(), blender::arg_handle_debug_mode_ffmpeg(), blender::arg_handle_log_set(), and CLG_type_filter_include().
|
static |
Action on error level.
Definition at line 760 of file clog.cc.
References CLogContext::callbacks, and CLT_ctx_error_fn_set().
Referenced by CLG_error_fn_set(), and CLT_ctx_error_fn_set().
|
static |
Definition at line 547 of file clog.cc.
References clg_color_table, clg_str_append(), clg_str_append_with_len(), COLOR_DIM, COLOR_RESET, PATHSEP_CHAR, and write_file_line_fn().
Referenced by CLG_log_str(), CLG_logf(), and write_file_line_fn().
|
static |
Definition at line 518 of file clog.cc.
References clg_color_table, clg_level_as_text(), CLG_LEVEL_INFO, clg_level_to_color(), clg_str_append(), COLOR_RESET, and write_level().
Referenced by CLG_log_str(), CLG_logf(), and write_level().
|
static |
Definition at line 505 of file clog.cc.
References clg_str_append_char(), clg_str_append_with_len(), len(), MEM_get_memory_in_use, and write_memory().
Referenced by CLG_log_str(), CLG_logf(), and write_memory().
|
static |
Definition at line 488 of file clog.cc.
References clg_str_append_with_len(), clg_timestamp_ticks_get(), and write_timestamp().
Referenced by CLG_log_str(), CLG_logf(), and write_timestamp().
|
static |
Definition at line 537 of file clog.cc.
References clg_str_append_char(), clg_str_append_with_len(), CLG_LogType::identifier, len(), and write_type().
Referenced by CLG_log_str(), CLG_logf(), and write_type().
|
static |
Definition at line 298 of file clog.cc.
Referenced by clg_color_table_init(), write_file_line_fn(), and write_level().
|
static |
Definition at line 866 of file clog.cc.
Referenced by CLG_backtrace_fn_set(), CLG_error_fn_set(), CLG_exit(), CLG_fatal_fn_set(), CLG_init(), CLG_level_set(), CLG_logref_init(), CLG_output_set(), CLG_output_use_basename_set(), CLG_output_use_memory_set(), CLG_output_use_source_set(), CLG_output_use_timestamp_set(), CLG_type_filter_exclude(), and CLG_type_filter_include().
|
static |
Definition at line 868 of file clog.cc.
Referenced by CLG_quiet_get(), and CLG_quiet_set().
|
static |
Definition at line 68 of file clog.cc.
Referenced by CLG_log_str(), and CLG_logf().