gr::logger
gnuradio/logger.h
std::shared_ptr< spdlog::logger > using gr::logger::underlying_logger_ptr = std::shared_ptr<spdlog::logger> underlying_logger_ptr gr::logger::underlying_logger_ptr
typename... Args Args
const spdlog::string_view_t & using gr::logger::format_string_t = const spdlog::string_view_t& format_string_t gr::logger::format_string_t
std::string std::string gr::logger::_name _name gr::logger::_name

pointer to logger associated with this wrapper class

underlying_logger_ptr underlying_logger_ptr gr::logger::d_logger d_logger gr::logger::d_logger
gr::logger::logger
(const std::string &logger_name)
logger
gr::logger::logger
const std::string & logger_name

constructor Provide name of logger to associate with this class

logger_name

Name of logger associated with class

Creates a new logger. Loggers inherit the logging level (through `gr.prefs` or through `gr::logging::singleton().set_default_level()`) that is set at the time of their creation.
gr::logger::~logger
()=default
~logger
gr::logger::~logger

Destructor.

void void gr::logger::set_level (const std::string &level) set_level gr::logger::set_level const std::string & level

inline function, wrapper to set the logger level

void void gr::logger::set_level (const log_level level) set_level gr::logger::set_level const log_level level
void void gr::logger::get_level (std::string &level) const get_level gr::logger::get_level std::string & level

inline function, wrapper to get the logger level

const std::string const std::string gr::logger::get_string_level () const get_string_level gr::logger::get_string_level
log_level log_level gr::logger::get_level () const get_level gr::logger::get_level
const std::string & const std::string & gr::logger::name () const name gr::logger::name
void void gr::logger::set_name (const std::string &name) set_name gr::logger::set_name const std::string & name
typename... Args Args
void void gr::logger::trace (format_string_t< Args... > msg, Args &&... args) trace gr::logger::trace format_string_t< Args... > msg Args &&... args

inline function, wrapper for TRACE message

typename... Args Args
void void gr::logger::debug (format_string_t< Args... > msg, Args &&... args) debug gr::logger::debug format_string_t< Args... > msg Args &&... args

inline function, wrapper for DEBUG message

typename... Args Args
void void gr::logger::info (format_string_t< Args... > msg, Args &&... args) info gr::logger::info format_string_t< Args... > msg Args &&... args

inline function, wrapper for INFO message

typename... Args Args
void void gr::logger::notice (format_string_t< Args... > msg, Args &&... args) notice gr::logger::notice format_string_t< Args... > msg Args &&... args

inline function, wrapper for INFO message, DEPRECATED

typename... Args Args
void void gr::logger::warn (format_string_t< Args... > msg, Args &&... args) warn gr::logger::warn format_string_t< Args... > msg Args &&... args

inline function, wrapper for WARN message

typename... Args Args
void void gr::logger::error (format_string_t< Args... > msg, Args &&... args) error gr::logger::error format_string_t< Args... > msg Args &&... args

inline function, wrapper for ERROR message

typename... Args Args
void void gr::logger::crit (format_string_t< Args... > msg, Args &&... args) crit gr::logger::crit format_string_t< Args... > msg Args &&... args

inline function, wrapper for CRITICAL message

typename... Args Args
void void gr::logger::alert (format_string_t< Args... > msg, Args &&... args) alert gr::logger::alert format_string_t< Args... > msg Args &&... args

inline function, wrapper for CRITICAL message, DEPRECATED

typename... Args Args
void void gr::logger::fatal (format_string_t< Args... > msg, Args &&... args) fatal gr::logger::fatal format_string_t< Args... > msg Args &&... args

inline function, wrapper for CRITICAL message, DEPRECATED

typename... Args Args
void void gr::logger::emerg (format_string_t< Args... > msg, Args &&... args) emerg gr::logger::emerg format_string_t< Args... > msg Args &&... args

inline function, wrapper for CRITICAL message, DEPRECATED

typename... Args Args
void void gr::logger::log (spdlog::level::level_enum level, format_string_t< Args... > msg, Args &&... args) log gr::logger::log spdlog::level::level_enum level format_string_t< Args... > msg Args &&... args

inline function, wrapper for logging with ad-hoc adjustable level

GR_LOG macros.

These macros wrap the standard LOG4CPP_LEVEL macros. The available macros are: LOG_DEBUG LOG_INFO LOG_WARN LOG_TRACE LOG_ERROR LOG_ALERT LOG_CRIT LOG_FATAL LOG_EMERG

Logger class for referencing loggers in python. Not needed in C++ (use macros) Wraps and manipulates loggers for python as python has no macros

gr::logger
d_logger
std::shared_ptr< spdlog::logger >
- gr::logger
  _name
- gr::logger
  alert
- gr::logger
  crit
- gr::logger
  d_logger
- gr::logger
  debug
- gr::logger
  emerg
- gr::logger
  error
- gr::logger
  fatal
- gr::logger
  format_string_t
- gr::logger
  get_level
- gr::logger
  get_level
- gr::logger
  get_string_level
- gr::logger
  info
- gr::logger
  log
- gr::logger
  logger
- gr::logger
  name
- gr::logger
  notice
- gr::logger
  set_level
- gr::logger
  set_level
- gr::logger
  set_name
- gr::logger
  trace
- gr::logger
  underlying_logger_ptr
- gr::logger
  warn
- gr::logger
  ~logger