Go to the source code of this file.
Macros | |
#define | log_message(level,...) do{ if (level <= log_level) { assert(log_target); if (level <= LOG_DEBUG) fprintf(log_target, "%s", log_prefix[level]); mpfr_fprintf(log_target, __VA_ARGS__); } }while(0) |
#define | debug_message(...) log_message(LOG_DEBUG, __VA_ARGS__) |
Enumerations | |
enum | log_level_t { LOG_OOPS = 0, LOG_FATAL = 1, LOG_ERROR = 2, LOG_WARN = 3, LOG_NOTICE = 4, LOG_INFO = 5, LOG_DEBUG = 6 } |
enum | result_t { result_ok = 0, result_glitch = 1, result_parse = 2, result_deep = 3, result_timeout = 4 } |
Functions | |
void | log_result (const char *filename, enum result_t result, enum render_method_t method, double iterations, double exterior, double interior, double glitch, int passes) |
Variables | |
enum log_level_t | log_level |
FILE * | log_target |
const char * | log_prefix [7] |
const char * | result_name [5] |
#define debug_message | ( | ... | ) | log_message(LOG_DEBUG, __VA_ARGS__) |
Definition at line 37 of file logging.h.
Referenced by completion_reset(), completion_start(), completion_update(), fp32_escaped_do(), fp32_escaped_start(), fp32_fillc_do(), fp32_init_do(), fp32_step_do(), fp32_step_start(), fp32_unescaped_do(), fp32_unescaped_start(), fp64_escaped_do(), fp64_escaped_start(), fp64_init_do(), fp64_step_do(), fp64_step_start(), fp64_unescaped_do(), fp64_unescaped_start(), fpxx_approx_do(), fpxx_escaped_do(), fpxx_escaped_start(), fpxx_init_do(), fpxx_step_do(), fpxx_step_start(), fpxx_unescaped_do(), fpxx_unescaped_start(), parse_gif(), parse_png(), parse_ppar_center(), parse_ppar_corners(), poll_ui(), ref_set_delete(), ref_set_insert(), ref_set_new(), render_calculate(), render_cont(), render_display(), and render_start().
#define log_message | ( | level, | |
... | |||
) | do{ if (level <= log_level) { assert(log_target); if (level <= LOG_DEBUG) fprintf(log_target, "%s", log_prefix[level]); mpfr_fprintf(log_target, __VA_ARGS__); } }while(0) |
Definition at line 34 of file logging.h.
Referenced by create_window(), debug_program(), find_ref(), fpX_start(), fpxx_approx_do(), interact_keyboard(), load_parameter_file(), main(), parse_command_line(), parse_png(), print_banner(), record_do(), render_cont(), render_display(), render_start(), vram_ati(), and vram_nvidia().
enum log_level_t |
enum result_t |
void log_result | ( | const char * | filename, |
enum result_t | result, | ||
enum render_method_t | method, | ||
double | iterations, | ||
double | exterior, | ||
double | interior, | ||
double | glitch, | ||
int | passes | ||
) |
Definition at line 32 of file logging.c.
References render_method_fp32, render_method_fp64, render_method_fpxx, render_method_name, result_deep, result_glitch, result_name, result_ok, result_parse, and result_timeout.
Referenced by main(), and render_display().
enum log_level_t log_level |
Definition at line 12 of file logging.c.
Referenced by debug_program(), and main().
FILE* log_target |
Definition at line 13 of file logging.c.
Referenced by debug_program(), and main().
const char* result_name[5] |
Definition at line 24 of file logging.c.
Referenced by collect_metadata_to_string(), and log_result().