#ifndef LOGGER_HPP_INCLUDED #define LOGGER_HPP_INCLUDED #include extern int verbose; #define LogDebug(s, ...) \ if ( verbose >= 3 ) printf(s, ##__VA_ARGS__); #define LogMoreInfo(s, ...) \ if ( verbose >= 2 ) printf(s, ##__VA_ARGS__); #define LogInfo(s, ...) \ if ( verbose >= 1 ) printf(s, ##__VA_ARGS__); #define LogError(s, ...) \ if ( verbose >= 0 ) { printf("%s, %s(), %d: ", __FILE__, __func__, __LINE__); printf(s, ##__VA_ARGS__); } #endif // LOGGER_HPP_INCLUDED