9 #define LOGGER_MAX_FILE_NAME_SIZE 256 18 namespace query {
struct Query;}
19 namespace table {
struct inv_table;}
20 namespace table {
struct inv_compr_table;}
45 static const int NONE = 0;
47 static const int ALERT = 1;
49 static const int INFO = 2;
51 static const int VERBOSE = 3;
53 static const int DEBUG = 4;
55 static const char *
const LEVEL_NAMES[];
70 static void exit(
void);
89 static int log(
int level,
const char *fmt, ...);
91 static void logQueries(
int level, std::vector<genie::query::Query> &queries,
size_t max_print_len = 128);
93 static void logResults(
int level, std::vector<genie::query::Query> &queries, std::vector<int> &result,
94 std::vector<int> &result_count,
size_t max_print_len = 128);
98 static void logInvLists(
int level,
const std::vector<std::vector<uint32_t> > &rawInvertedLists,
99 size_t max_print_len = 128);
112 static void set_level(
int level);
119 static int get_level();
134 static void set_logfile_name(
const char *name);
141 static const char * get_logfile_name();
186 static Logger* _logger(
void);
This is the top-level namespace of the project.
The declaration for class inv_table.
#define LOGGER_MAX_FILE_NAME_SIZE
Query class includes the functions for processing queries based on user's input.
A utility class to record logs into disk files.