mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
825 B
C
33 lines
825 B
C
4 years ago
|
/**
|
||
5 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
5 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
5 years ago
|
*
|
||
4 years ago
|
* By using this file, you agree to the terms and conditions set
|
||
|
* forth in the LICENSE file which can be found at the top level of
|
||
|
* the distribution.
|
||
5 years ago
|
*
|
||
|
*/
|
||
|
|
||
4 years ago
|
#ifndef SRSRAN_LOG_HELPER_H
|
||
|
#define SRSRAN_LOG_HELPER_H
|
||
5 years ago
|
|
||
|
/**
|
||
|
* @file log_helper.h
|
||
|
*
|
||
|
* Convenience macro to log formatted messages. It is checked if the log pointer is still valid before accessing it.
|
||
|
*/
|
||
|
|
||
4 years ago
|
namespace srsran {
|
||
5 years ago
|
|
||
4 years ago
|
#define Error(fmt, ...) logger.error(fmt, ##__VA_ARGS__)
|
||
|
#define Warning(fmt, ...) logger.warning(fmt, ##__VA_ARGS__)
|
||
|
#define Info(fmt, ...) logger.info(fmt, ##__VA_ARGS__)
|
||
|
#define Debug(fmt, ...) logger.debug(fmt, ##__VA_ARGS__)
|
||
4 years ago
|
#define Console(fmt, ...) srsran::console(fmt, ##__VA_ARGS__)
|
||
5 years ago
|
|
||
4 years ago
|
} // namespace srsran
|
||
5 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_LOG_HELPER_H
|