|
Blender V5.0
|
#include "util/log.h"#include "util/math.h"#include "util/string.h"#include "util/time.h"#include <cstdio>Go to the source code of this file.
Functions | |
| const char * | log_level_to_string (const LogLevel level) |
| LogLevel | log_string_to_level (const string &str) |
| void | log_init (const LogFunction func) |
| void | log_level_set (const LogLevel level) |
| void | log_level_set (const std::string &level) |
| static void | log_default (const LogLevel level, const std::string &time_str, const char *msg) |
| void | _log_message (const LogLevel level, const char *file_line, const char *func, const char *msg) |
| std::ostream & | operator<< (std::ostream &os, const int2 &value) |
| std::ostream & | operator<< (std::ostream &os, const float3 &value) |
| std::ostream & | operator<< (std::ostream &os, const float4 &value) |
Variables | |
| CCL_NAMESPACE_BEGIN LogLevel | LOG_LEVEL = LOG_LEVEL_INFO_IMPORTANT |
| static LogFunction | LOG_FUNCTION |
| static double | LOG_START_TIME = time_dt() |
| void _log_message | ( | const LogLevel | level, |
| const char * | file_line, | ||
| const char * | func, | ||
| const char * | msg ) |
Definition at line 104 of file log.cpp.
References assert, log_default(), LOG_FUNCTION, LOG_LEVEL, LOG_LEVEL_DFATAL, LOG_LEVEL_FATAL, LOG_START_TIME, string_split(), time_dt(), and time_human_readable_from_seconds().
Referenced by LogMessage::~LogMessage().
|
static |
Definition at line 93 of file log.cpp.
References LOG_LEVEL_INFO, log_level_to_string(), and printf.
Referenced by _log_message().
| void log_init | ( | const LogFunction | func | ) |
Definition at line 72 of file log.cpp.
References LOG_FUNCTION, LOG_START_TIME, and time_dt().
Referenced by main(), CCL_NAMESPACE_BEGIN::ScopedMockLog::ScopedMockLog(), and CCL_NAMESPACE_BEGIN::ScopedMockLog::~ScopedMockLog().
| void log_level_set | ( | const LogLevel | level | ) |
Definition at line 78 of file log.cpp.
References LOG_LEVEL.
Referenced by options_parse(), RenderGraph::SetUp(), and RenderGraph::TearDown().
| void log_level_set | ( | const std::string & | level | ) |
Definition at line 83 of file log.cpp.
References LOG_ERROR, LOG_LEVEL, LOG_LEVEL_UNKNOWN, and log_string_to_level().
| const char * log_level_to_string | ( | const LogLevel | level | ) |
Definition at line 21 of file log.cpp.
References LOG_LEVEL_DEBUG, LOG_LEVEL_DERROR, LOG_LEVEL_DFATAL, LOG_LEVEL_DWARNING, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_INFO_IMPORTANT, LOG_LEVEL_TRACE, LOG_LEVEL_UNKNOWN, and LOG_LEVEL_WARNING.
Referenced by log_default().
| LogLevel log_string_to_level | ( | const string & | str | ) |
Definition at line 47 of file log.cpp.
References LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_TRACE, LOG_LEVEL_UNKNOWN, LOG_LEVEL_WARNING, str, and string_to_lower().
Referenced by log_level_set().
| std::ostream & operator<< | ( | std::ostream & | os, |
| const float3 & | value ) |
| std::ostream & operator<< | ( | std::ostream & | os, |
| const float4 & | value ) |
| std::ostream & operator<< | ( | std::ostream & | os, |
| const int2 & | value ) |
|
static |
Definition at line 18 of file log.cpp.
Referenced by _log_message(), and log_init().
| CCL_NAMESPACE_BEGIN LogLevel LOG_LEVEL = LOG_LEVEL_INFO_IMPORTANT |
Definition at line 17 of file log.cpp.
Referenced by _log_message(), log_level_set(), and log_level_set().
|
static |
Definition at line 19 of file log.cpp.
Referenced by _log_message(), and log_init().