mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Also update copyright to include "and other WPILib contributors" and clarify license referral language to not be restricted to FIRST teams.
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#ifndef CSCORE_LOG_H_
|
|
#define CSCORE_LOG_H_
|
|
|
|
#include <wpi/Logger.h>
|
|
|
|
#define LOG(level, x) WPI_LOG(m_logger, level, x)
|
|
|
|
#undef ERROR
|
|
#define ERROR(x) WPI_ERROR(m_logger, x)
|
|
#define WARNING(x) WPI_WARNING(m_logger, x)
|
|
#define INFO(x) WPI_INFO(m_logger, x)
|
|
|
|
#define DEBUG0(x) WPI_DEBUG(m_logger, x)
|
|
#define DEBUG1(x) WPI_DEBUG1(m_logger, x)
|
|
#define DEBUG2(x) WPI_DEBUG2(m_logger, x)
|
|
#define DEBUG3(x) WPI_DEBUG3(m_logger, x)
|
|
#define DEBUG4(x) WPI_DEBUG4(m_logger, x)
|
|
|
|
#define SERROR(x) ERROR(GetName() << ": " << x)
|
|
#define SWARNING(x) WARNING(GetName() << ": " << x)
|
|
#define SINFO(x) INFO(GetName() << ": " << x)
|
|
|
|
#define SDEBUG(x) DEBUG0(GetName() << ": " << x)
|
|
#define SDEBUG1(x) DEBUG1(GetName() << ": " << x)
|
|
#define SDEBUG2(x) DEBUG2(GetName() << ": " << x)
|
|
#define SDEBUG3(x) DEBUG3(GetName() << ": " << x)
|
|
#define SDEBUG4(x) DEBUG4(GetName() << ": " << x)
|
|
|
|
#endif // CSCORE_LOG_H_
|