|
|
@ -32,8 +32,8 @@
|
|
|
|
* common logger object.
|
|
|
|
* common logger object.
|
|
|
|
*****************************************************************************/
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LOG_FILTER_H
|
|
|
|
#ifndef SRSLTE_LOG_FILTER_H
|
|
|
|
#define LOG_FILTER_H
|
|
|
|
#define SRSLTE_LOG_FILTER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
@ -57,16 +57,16 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
void init(std::string layer, logger *logger_, bool tti=false);
|
|
|
|
void init(std::string layer, logger *logger_, bool tti=false);
|
|
|
|
|
|
|
|
|
|
|
|
void console(std::string message, ...);
|
|
|
|
void console(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
|
|
|
void error(std::string message, ...);
|
|
|
|
void error(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
|
|
|
void warning(std::string message, ...);
|
|
|
|
void warning(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
|
|
|
void info(std::string message, ...);
|
|
|
|
void info(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
|
|
|
void debug(std::string message, ...);
|
|
|
|
void debug(const char * message, ...) __attribute__ ((format (printf, 2, 3)));
|
|
|
|
|
|
|
|
|
|
|
|
void error_hex(uint8_t *hex, int size, std::string message, ...);
|
|
|
|
void error_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
|
|
|
void warning_hex(uint8_t *hex, int size, std::string message, ...);
|
|
|
|
void warning_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
|
|
|
void info_hex(uint8_t *hex, int size, std::string message, ...);
|
|
|
|
void info_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
|
|
|
void debug_hex(uint8_t *hex, int size, std::string message, ...);
|
|
|
|
void debug_hex(const uint8_t *hex, int size, const char * message, ...) __attribute__((format (printf, 4, 5)));
|
|
|
|
|
|
|
|
|
|
|
|
class time_itf {
|
|
|
|
class time_itf {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
@ -89,13 +89,13 @@ private:
|
|
|
|
|
|
|
|
|
|
|
|
logger_stdout def_logger_stdout;
|
|
|
|
logger_stdout def_logger_stdout;
|
|
|
|
|
|
|
|
|
|
|
|
void all_log(srslte::LOG_LEVEL_ENUM level, uint32_t tti, char *msg);
|
|
|
|
void all_log(srslte::LOG_LEVEL_ENUM level, uint32_t tti, const char *msg);
|
|
|
|
void all_log(srslte::LOG_LEVEL_ENUM level, uint32_t tti, char *msg, uint8_t *hex, int size);
|
|
|
|
void all_log(srslte::LOG_LEVEL_ENUM level, uint32_t tti, const char *msg, const uint8_t *hex, int size);
|
|
|
|
void all_log_line(srslte::LOG_LEVEL_ENUM level, uint32_t tti, std::string file, int line, char *msg);
|
|
|
|
void all_log_line(srslte::LOG_LEVEL_ENUM level, uint32_t tti, std::string file, int line, char *msg);
|
|
|
|
std::string now_time();
|
|
|
|
std::string now_time();
|
|
|
|
std::string hex_string(uint8_t *hex, int size);
|
|
|
|
std::string hex_string(const uint8_t *hex, int size);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace srsue
|
|
|
|
} // namespace srsue
|
|
|
|
|
|
|
|
|
|
|
|
#endif // LOG_FILTER_H
|
|
|
|
#endif // SRSLTE_LOG_FILTER_H
|
|
|
|