|
CG_Labs 2021.2
|
Classes | |
| struct | LogSettings |
| class | View |
Enumerations | |
| enum | Type { TYPE_SUCCESS = 0 , TYPE_INFO = 1 , TYPE_NEUTRAL = 2 , TYPE_WARNING = 3 , TYPE_ERROR = 4 , TYPE_FILE = 5 , TYPE_ASSERT = 6 , TYPE_PARAM = 7 , TYPE_TRIVIA = 8 , N_TYPES = 9 } |
| enum | Severity { OK = 0 , BAD , TERMINAL } |
| enum | Verbosity { WHISPER = 0 , LOUD_UNSITUATED , LOUD } |
Functions | |
| void | Init () |
| void | Destroy () |
| void | SetCustomOutputTargetFunc (void(*textout)(Type, const char *)) |
| void | SetOutputTargets (size_t flags) |
| void | SetVerbosity (Type type, Verbosity verbosity) |
| void | SetIncludeThreadID (bool inc) |
| void | Report (unsigned int flags, const char *file, const char *function, int line, Type type, const char *str,...) |
| bool | ReportParam (unsigned int test, const char *file, const char *function, int line) |
| void | SetOutputTargets (std::size_t targets) |
Variables | |
| FILE * | logfile = nullptr |
| void(* | textout_func )(Type, const char *) = nullptr |
| std::unordered_map< size_t, size_t > | once_map |
| size_t | output_targets = LOG_OUT_STD | LOG_OUT_CUSTOM | LOG_OUT_FILE |
| std::mutex | fileMutex |
| char | log_result_string [RESULT_MAX_STRING_LENGTH] |
| bool | logIncludeThreadID = false |
| LogSettings | logSettings [] |
| enum Log::Type |
| void Log::Destroy | ( | ) |
| void Log::Init | ( | ) |
| void Log::Report | ( | unsigned int | flags, |
| const char * | file, | ||
| const char * | function, | ||
| int | line, | ||
| Type | type, | ||
| const char * | str, | ||
| ... | |||
| ) |
Report a result to a log file and standard output
| bool Log::ReportParam | ( | unsigned int | test, |
| const char * | file, | ||
| const char * | function, | ||
| int | line | ||
| ) |
| void Log::SetCustomOutputTargetFunc | ( | void(*)(Type, const char *) | textout | ) |
| void Log::SetIncludeThreadID | ( | bool | inc | ) |
| void Log::SetOutputTargets | ( | size_t | flags | ) |
| void Log::SetOutputTargets | ( | std::size_t | targets | ) |
| std::mutex Log::fileMutex |
| char Log::log_result_string[RESULT_MAX_STRING_LENGTH] |
| FILE* Log::logfile = nullptr |
| bool Log::logIncludeThreadID = false |
| LogSettings Log::logSettings[] |
| std::unordered_map<size_t, size_t> Log::once_map |
| size_t Log::output_targets = LOG_OUT_STD | LOG_OUT_CUSTOM | LOG_OUT_FILE |