mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
- Twine, StringRef, Format, and NativeFormatting have been removed - Logging now uses fmtlib style formatting - Nearly all uses of wpi::outs/errs have been replaced with fmt::print() or std::puts()/std::fputs() (for unformatted strings). - A wpi/fmt/raw_ostream.h header has been added to enable fmt::print() with wpi::raw_ostream
24 lines
944 B
C
24 lines
944 B
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 NTCORE_LOG_H_
|
|
#define NTCORE_LOG_H_
|
|
|
|
#include <wpi/Logger.h>
|
|
|
|
#define LOG(level, format, ...) WPI_LOG(m_logger, level, format, __VA_ARGS__)
|
|
|
|
#undef ERROR
|
|
#define ERROR(format, ...) WPI_ERROR(m_logger, format, __VA_ARGS__)
|
|
#define WARNING(format, ...) WPI_WARNING(m_logger, format, __VA_ARGS__)
|
|
#define INFO(format, ...) WPI_INFO(m_logger, format, __VA_ARGS__)
|
|
|
|
#define DEBUG0(format, ...) WPI_DEBUG(m_logger, format, __VA_ARGS__)
|
|
#define DEBUG1(format, ...) WPI_DEBUG1(m_logger, format, __VA_ARGS__)
|
|
#define DEBUG2(format, ...) WPI_DEBUG2(m_logger, format, __VA_ARGS__)
|
|
#define DEBUG3(format, ...) WPI_DEBUG3(m_logger, format, __VA_ARGS__)
|
|
#define DEBUG4(format, ...) WPI_DEBUG4(m_logger, format, __VA_ARGS__)
|
|
|
|
#endif // NTCORE_LOG_H_
|