mightymandel v16

GPU-based Mandelbrot set explorer

logging.c File Reference

(v16)

#include <stdio.h>
#include <string.h>
#include "render.h"
#include "logging.h"
#include "image.h"
+ Include dependency graph for logging.c:

Go to the source code of this file.

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 = LOG_NOTICE
FILE * log_target = 0
const char * log_prefix [7]
const char * result_name [5]

Function Documentation

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().

+ Here is the caller graph for this function:

Variable Documentation

enum log_level_t log_level = LOG_NOTICE

Definition at line 12 of file logging.c.

Referenced by debug_program(), and main().

const char* log_prefix[7]
Initial value:
{
"OOPS\t",
"FATAL\t",
"ERROR\t",
"WARN\t",
"NOTICE\t",
"INFO\t",
"DEBUG\t"
}

Definition at line 14 of file logging.c.

FILE* log_target = 0

Definition at line 13 of file logging.c.

Referenced by debug_program(), and main().

const char* result_name[5]
Initial value:
{
"ok",
"glitch",
"parse",
"deep",
"timeout"
}

Definition at line 24 of file logging.c.

Referenced by collect_metadata_to_string(), and log_result().