pid-log  3.1.10
Macros
log.h File Reference

this is the user API of the logging system. More...

#include <pid/logger_proxy.h>
#include <pid/logger.h>
Include dependency graph for log.h:

Go to the source code of this file.

Macros

#define PID_LOG_FRAMEWORK_NAME   ""
 
#define PID_LOG_PACKAGE_NAME   ""
 
#define PID_LOG_COMPONENT_NAME   ""
 
#define pid_log
 provide a stream like proxy object used to generate messages More...
 
#define PID_LOGGER   pid::logger()
 provide acess to the global logger core. More...
 

Detailed Description

this is the user API of the logging system.

Author
Robin Passama
Date
created on April 2014 8th, rewritten in 2019.

Macro Definition Documentation

◆ pid_log

#define pid_log
Value:
PID_LOG_COMPONENT_NAME, __FILE__, "", __LINE__)
static Proxy & proxy(const std::string &framework, const std::string &package, const std::string &component, const std::string &file, const std::string &function, int line)
get access to the proxy object that is used to log info coming from a given component/package.
#define PID_LOG_COMPONENT_NAME
Definition: log.h:58
#define PID_LOG_PACKAGE_NAME
Definition: log.h:57
#define PID_LOG_FRAMEWORK_NAME
Definition: log.h:56

provide a stream like proxy object used to generate messages

Examples
ex_log.cpp, ex_log_hand_written.cpp, and ex_log_with_threads.cpp.

◆ PID_LOG_COMPONENT_NAME

#define PID_LOG_COMPONENT_NAME   ""

◆ PID_LOG_FRAMEWORK_NAME

#define PID_LOG_FRAMEWORK_NAME   ""

◆ PID_LOG_PACKAGE_NAME

#define PID_LOG_PACKAGE_NAME   ""

◆ PID_LOGGER

#define PID_LOGGER   pid::logger()

provide acess to the global logger core.

use this macro whenever you want to configure and control the logging system.

Examples
ex_log_hand_written.cpp.