11 #include "support/atomic_static.h"
12 #include "support/Logger.h"
18 static Logger& GetInstance() {
19 ATOMIC_STATIC(
Logger, instance);
30 #define LOG(level, x) WPI_LOG(nt::Logger::GetInstance(), level, x)
33 #define ERROR(x) WPI_ERROR(nt::Logger::GetInstance(), x)
34 #define WARNING(x) WPI_WARNING(nt::Logger::GetInstance(), x)
35 #define INFO(x) WPI_INFO(nt::Logger::GetInstance(), x)
37 #define DEBUG(x) WPI_DEBUG(nt::Logger::GetInstance(), x)
38 #define DEBUG1(x) WPI_DEBUG1(nt::Logger::GetInstance(), x)
39 #define DEBUG2(x) WPI_DEBUG2(nt::Logger::GetInstance(), x)
40 #define DEBUG3(x) WPI_DEBUG3(nt::Logger::GetInstance(), x)
41 #define DEBUG4(x) WPI_DEBUG4(nt::Logger::GetInstance(), x)