File SBCLog.hpp#
FileList > Base > Core > Log > include > SBCLog.hpp
#include "SBCLogManager.hpp"#include <iostream>#include <string.h>#include "SBCClass.hpp"
Macros#
| Type | Name |
|---|---|
| define | SB_ANALYTICS (message) |
| define | SB_CHECK_DURATION (stmt, thresholdSeconds) |
| define | SB_CHECK_DURATION_1 (stmt) |
| define | SB_CHRONO |
| define | SB_ERROR (message) |
| define | SB_FILENAME |
| define | SB_FUNCTION |
| define | SB_ID_STRING |
| define | SB_INFORMATION (message) |
| define | SB_INT_TO_STRING (a) |
| define | SB_INT_TO_STRING2 (a) |
| define | SB_LINE |
| define | SB_PRINT_DEBUG (message) |
| define | SB_SAMSON_LOG_LEVEL |
| define | SB_STACK_HISTORY (message) |
| define | SB_TIMER_CREATE (timerName) |
| define | SB_TIMER_CREATE_1 (...) |
| define | SB_TIMER_MEASURE_PRINT (timerName, thresholdSeconds) |
| define | SB_TIMER_MEASURE_PRINT_1 (...) |
| define | SB_TIMER_MEASURE_PRINT_CUMULATIVE (timerName, thresholdSeconds) |
| define | SB_TIMER_MEASURE_PRINT_CUMULATIVE_1 (...) |
| define | SB_TIMER_PRINT (timerName, thresholdSeconds) |
| define | SB_TIMER_PRINT_1 (...) |
| define | SB_TIMER_REUSE (timerName) |
| define | SB_TIMER_REUSE_1 (...) |
| define | SB_TRACE (...) SB_TRACE is not defined. |
| define | SB_WARNING (message) |
Macro Definition Documentation#
define SB_ANALYTICS#
A macro to log an analytics message
Parameters:
messageThe message,std::stringtype
define SB_CHECK_DURATION#
A macro that encapsulates the code stmt, by creating a timer before it, measuring the code duration, and printing the duration information if it was larger than thresholdSeconds
\parm stmt The code which duration you would like to check
Parameters:
thresholdSecondsThe threshold in seconds for printing the timer duration,double
define SB_CHECK_DURATION_1#
define SB_CHRONO#
define SB_ERROR#
A macro to log an error message
Parameters:
messageThe message,std::stringtype
define SB_FILENAME#
define SB_FUNCTION#
define SB_ID_STRING#
define SB_INFORMATION#
A macro to log an information message
Parameters:
messageThe message,std::stringtype
define SB_INT_TO_STRING#
define SB_INT_TO_STRING2#
define SB_LINE#
define SB_PRINT_DEBUG#
A macro to output into std::cout a debug message with the file name, function name, and line number
Parameters:
messageThe message,std::stringtype
define SB_SAMSON_LOG_LEVEL#
define SB_STACK_HISTORY#
A macro to log a stack history message
Parameters:
messageThe message,std::stringtype
define SB_TIMER_CREATE#
A macro to create a timer with the name timerName
Parameters:
timerNameThe timer's name,std::stringtype
define SB_TIMER_CREATE_1#
define SB_TIMER_MEASURE_PRINT#
A macro to measure the timer with the name timerName and print the duration if it was larger than thresholdSeconds
Parameters:
timerNameThe timer's name,std::stringtypethresholdSecondsThe threshold in seconds for printing the timer duration,double
define SB_TIMER_MEASURE_PRINT_1#
define SB_TIMER_MEASURE_PRINT_CUMULATIVE#
Parameters:
timerNameThe timer's name,std::stringtypethresholdSecondsThe threshold in seconds for printing the timer duration,double
define SB_TIMER_MEASURE_PRINT_CUMULATIVE_1#
define SB_TIMER_PRINT#
Parameters:
timerNameThe timer's name,std::stringtypethresholdSecondsThe threshold in seconds for printing the timer duration,double
define SB_TIMER_PRINT_1#
define SB_TIMER_REUSE#
A macro to reuse a timer with the name timerName
Parameters:
timerNameThe timer's name,std::stringtype
define SB_TIMER_REUSE_1#
define SB_TRACE#
SB_TRACE is not defined.
define SB_WARNING#
A macro to log a warning message
Parameters:
messageThe message,std::stringtype