pid-log  3.1.10
Namespaces | Classes | Functions
pid Namespace Reference

root namespace for pid packages. More...

Namespaces

 log
 pid::log global namespace for pid-log objects
 

Classes

class  align_on
 

Functions

PID_LOG_PID_LOG_EXPORT pid::log::Loggerlogger ()
 access to the global logger object More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxyflush (pid::log::Proxy &logger)
 pid::flush flush the output of a logger proxy.. More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxyendl (pid::log::Proxy &logger)
 pid::endl insert a new without flushing the output, unlike std::endl. Padding spaces will be inserted after the new line if automatic alignment is activated (i.e. align_on was called). More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxyalign_off (pid::log::Proxy &logger)
 pid::align_off all lines of the output will be NOT automatically aligned with same padding spaces. More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxydebug (pid::log::Proxy &logger)
 pid::debug write the output message as a debug message. More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxyinfo (pid::log::Proxy &logger)
 pid::info write the output message as an informational message. More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxywarning (pid::log::Proxy &logger)
 pid::warning write the output message as a warning alert. More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxyerror (pid::log::Proxy &logger)
 pid::error write the output message as an error. More...
 
PID_LOG_PID_LOG_EXPORT pid::log::Proxycritical (pid::log::Proxy &logger)
 pid::critical write the output message as a critical error (something that cannot be repaired). More...
 

Detailed Description

root namespace for pid packages.

root namespace for common and general purpose packages.

Function Documentation

◆ align_off()

pid::align_off all lines of the output will be NOT automatically aligned with same padding spaces.

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy

◆ critical()

pid::critical write the output message as a critical error (something that cannot be repaired).

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, and ex_log_hand_written.cpp.

◆ debug()

pid::debug write the output message as a debug message.

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, and ex_log_hand_written.cpp.

◆ endl()

pid::endl insert a new without flushing the output, unlike std::endl. Padding spaces will be inserted after the new line if automatic alignment is activated (i.e. align_on was called).

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, ex_log_hand_written.cpp, and ex_log_with_threads.cpp.

◆ error()

pid::error write the output message as an error.

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, ex_log_hand_written.cpp, and ex_log_with_threads.cpp.

◆ flush()

pid::flush flush the output of a logger proxy..

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, ex_log_hand_written.cpp, and ex_log_with_threads.cpp.

◆ info()

pid::info write the output message as an informational message.

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, ex_log_hand_written.cpp, and ex_log_with_threads.cpp.

◆ logger()

access to the global logger object

Returns
reference on the global logger object
Examples
ex_log.cpp.

◆ warning()

pid::warning write the output message as a warning alert.

Parameters
loggerThe logger proxy to work with.
Returns
The input logger proxy
Examples
ex_log.cpp, ex_log_hand_written.cpp, and ex_log_with_threads.cpp.