SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Classes | Macros
LogRAII.hpp File Reference

Log RAII type implementation. More...

#include <SA/Logger/Preprocessors/LogMacro.hpp>

Go to the source code of this file.

Classes

class  SA::LogRAII
 Log RAII type implementation. Delays the log at the end of the scope. More...
 

Macros

#define SA_LOG_RAII((_str, _args)   , _lvl, _chan, _dets)
 Sapphire Log RAII macro.
 

Detailed Description

Log RAII type implementation.

Macro Definition Documentation

◆ SA_LOG_RAII

#define SA_LOG_RAII ( )    , _lvl, _chan, _dets)

Sapphire Log RAII macro.

Helper macro to use Logger with RAII system. Create log and wait for handle destroy to submit log to logger.

Parameters
[in]_strString message of the log. Parentheses are optionnal for single string or object.
[in]_argsArguments to insert in string using %<num>. Must add parentheses surrounding: (_str, _args).
[in]_lvlLevel of the log (optional).
[in]_chanChannel of the log (optional).
[in]_detsDetails string of the log (optional).