![]() |
XII Release 0.1.0
|
Instances of this class will group messages in a scoped block together. More...
#include <Log.h>
Public Member Functions | |
xiiLogBlock (xiiStringView sName, xiiStringView sContextInfo={}) | |
Creates a named grouping block for log messages. | |
xiiLogBlock (xiiLogInterface *pInterface, xiiStringView sName, xiiStringView sContextInfo={}) | |
Creates a named grouping block for log messages. | |
Friends | |
class | xiiLog |
Instances of this class will group messages in a scoped block together.
xiiLogBlock::xiiLogBlock | ( | xiiStringView | sName, |
xiiStringView | sContextInfo = {} ) |
Creates a named grouping block for log messages.
Use the szContextInfo to pass in a string that can give additional context information (e.g. a file name). This string must point to valid memory until after the log block object is destroyed. Log writers get these strings provided through the xiiLoggingEventData::m_szTag variable.
This constructor will output the log block data to the xiiGlobalLog.
xiiLogBlock::xiiLogBlock | ( | xiiLogInterface * | pInterface, |
xiiStringView | sName, | ||
xiiStringView | sContextInfo = {} ) |
Creates a named grouping block for log messages.
This variant of the constructor takes an explicit xiiLogInterface to write the log messages to.