#include <stdio.h>
#include <errno.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | LOG_PREFIX "ERMDB" |
#define | TRACING_ON 0 |
#define | QUERY_ON 0 |
#define | LOG_OPEN(X) do {} while (0) |
#define | LOG_CLOSE() do {} while (0) |
#define | TRACE(format, args...) do {} while (0) |
#define | LOGPRINTF(format, args...) do {} while (0) |
#define | QUERYPRINTF(format, args...) do {} while (0) |
#define | WARNPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args) |
#define | ERRORPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args) |
#define | ERRNOPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno)) |
#define ERRNOPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno)) |
Definition at line 120 of file ermetadb_log.h.
#define ERRORPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args) |
Definition at line 119 of file ermetadb_log.h.
#define LOG_CLOSE | ( | ) | do {} while (0) |
Definition at line 73 of file ermetadb_log.h.
#define LOG_OPEN | ( | X | ) | do {} while (0) |
Definition at line 72 of file ermetadb_log.h.
#define LOG_PREFIX "ERMDB" |
File Name : ermetadb_log.h
Description: Macros for debug printing.
The value of ERREGLOG_X_ON (with X one of LOGGING, WARNING or ERROR) determines whether a message will be printed. The value as defined in this file can be overruled by defining them before the inclusion of this file.
This file is best included in c files only. Copyright (C) 2008 iRex Technologies B.V. All rights reserved.
Definition at line 40 of file ermetadb_log.h.
#define LOGPRINTF | ( | format, | |||
args... | ) | do {} while (0) |
Definition at line 89 of file ermetadb_log.h.
#define QUERY_ON 0 |
Definition at line 55 of file ermetadb_log.h.
#define QUERYPRINTF | ( | format, | |||
args... | ) | do {} while (0) |
Definition at line 99 of file ermetadb_log.h.
Referenced by begin_transaction(), metadata_table_dump_impl(), sql3_commit_or_rollback(), and sql3_execute_query().
#define TRACE | ( | format, | |||
args... | ) | do {} while (0) |
Definition at line 79 of file ermetadb_log.h.
Referenced by add_filename(), check_database_version(), check_global_database_columns(), check_global_database_consistency(), check_global_database_tables(), check_local_database_consistency(), convert_database(), get_global_id(), get_local_column_names(), menustore_add_group(), menustore_add_item(), menustore_add_menu(), menustore_remove_group(), menustore_remove_item(), menustore_remove_menu(), menustore_set_group_label(), menustore_set_group_state(), menustore_set_item_label(), menustore_set_item_state(), open_sqlite_database(), set_annotation_impl(), set_file_metadata_impl(), statusbar_item_set_state(), statusbar_item_show(), statusbar_remove_item(), and testDoc().
#define TRACING_ON 0 |
Definition at line 47 of file ermetadb_log.h.
#define WARNPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args) |
Definition at line 106 of file ermetadb_log.h.