16 #ifndef IMPALA_COMMON_LOGGING_H
17 #define IMPALA_COMMON_LOGGING_H
24 #define DCHECK(condition) while(false) std::cout
25 #define DCHECK_EQ(a, b) while(false) std::cout
26 #define DCHECK_NE(a, b) while(false) std::cout
27 #define DCHECK_GT(a, b) while(false) std::cout
28 #define DCHECK_LT(a, b) while(false) std::cout
29 #define DCHECK_GE(a, b) while(false) std::cout
30 #define DCHECK_LE(a, b) while(false) std::cout
31 #define DCHECK_NOTNULL(a) while(false) std::cout
32 #define LOG(level) while(false) std::cout
34 #define VLOG(level) while(false) std::cout
35 #define VLOG_IS_ON(level) (false)
42 #include <glog/logging.h>
43 #include <gflags/gflags.h>
47 #define DCHECK_NOTNULL(a) while(false)
55 #define VLOG_CONNECTION VLOG(1)
56 #define VLOG_RPC VLOG(2)
57 #define VLOG_QUERY VLOG(1)
58 #define VLOG_FILE VLOG(2)
59 #define VLOG_ROW VLOG(3)
60 #define VLOG_PROGRESS VLOG(2)
62 #define VLOG_CONNECTION_IS_ON VLOG_IS_ON(1)
63 #define VLOG_RPC_IS_ON VLOG_IS_ON(2)
64 #define VLOG_QUERY_IS_ON VLOG_IS_ON(1)
65 #define VLOG_FILE_IS_ON VLOG_IS_ON(2)
66 #define VLOG_ROW_IS_ON VLOG_IS_ON(3)
67 #define VLOG_PROGRESS_IS_ON VLOG_IS_ON(2)
void GetFullLogFilename(google::LogSeverity severity, std::string *filename)
void InitGoogleLoggingSafe(const char *arg)
void CheckAndRotateLogFiles(int max_log_files)
void LogCommandLineFlags()
Writes all command-line flags to the log at level INFO.