|
ZeroErr
|
#include "zeroerr/internal/config.h"#include "zeroerr/internal/threadsafe.h"#include "zeroerr/internal/typetraits.h"#include "zeroerr/dbg.h"#include "zeroerr/format.h"#include "zeroerr/print.h"#include "zeroerr/internal/time.h"#include <iosfwd>#include <cstddef>#include <map>#include "zeroerr/string.h"#include <utility>#include <vector>

Go to the source code of this file.
Classes | |
| struct | zeroerr::LogInfo |
| LogInfo is a struct to store the meta data of the log message. More... | |
| struct | zeroerr::LogMessage |
| LogMessage is a class to store the log message. More... | |
| struct | zeroerr::LogMessageImpl< T > |
| LogMessageImpl is the implementation of the LogMessage. More... | |
| struct | zeroerr::LogMessageImpl< T >::GetTuplePtr |
| struct | zeroerr::LogMessageImpl< T >::PrintTupleData |
| class | zeroerr::Logger |
| struct | zeroerr::PushResult |
| class | zeroerr::LogIterator |
| LogIterator is a class to iterate the log messages. More... | |
| class | zeroerr::LogStream |
| LogStream is a class to manage the log messages. More... | |
| struct | zeroerr::LogRecord< T > |
| class | zeroerr::IContextScope |
| ContextScope is a helper class created in each basic block where you use INFO(). The context scope can has lazy evaluated function F(zeroerr::StringBuffer&) that is called when the assertation is failed. More... | |
| class | zeroerr::ContextScope< F > |
| Template implementation of context scope. More... | |
Namespaces | |
| namespace | zeroerr |
| namespace | zeroerr::detail |
Macros | |
| #define | _LIBCPP_REMOVE_TRANSITIVE_INCLUDES |
| #define | ZEROERR_INFO(...) |
| #define | ZEROERR_LOG(...) |
| #define | ZEROERR_WARN(...) |
| #define | ZEROERR_ERROR(...) |
| #define | ZEROERR_FATAL(...) |
| #define | INFO(...) |
| #define | LOG(...) |
| #define | WARN(...) |
| #define | ERR(...) |
| #define | FATAL(...) |
| #define | VERBOSE(v) |
| #define | LOG_GET(func, id, name, type) |
| #define | ZEROERR_LOG_IF(condition, ACTION, ...) |
| #define | INFO_IF(cond, ...) |
| #define | LOG_IF(cond, ...) |
| #define | WARN_IF(cond, ...) |
| #define | ERR_IF(cond, ...) |
| #define | FATAL_IF(cond, ...) |
| #define | ZEROERR_LOG_EVERY_(n, ACTION, ...) |
| #define | INFO_EVERY_(n, ...) |
| #define | LOG_EVERY_(n, ...) |
| #define | WARN_EVERY_(n, ...) |
| #define | ERR_EVERY_(n, ...) |
| #define | FATAL_EVERY_(n, ...) |
| #define | ZEROERR_LOG_IF_EVERY_(n, cond, ACTION, ...) |
| #define | INFO_IF_EVERY_(n, cond, ...) |
| #define | LOG_IF_EVERY_(n, cond, ...) |
| #define | WARN_IF_EVERY_(n, cond, ...) |
| #define | ERR_IF_EVERY_(n, cond, ...) |
| #define | FATAL_IF_EVERY_(n, cond, ...) |
| #define | ZEROERR_LOG_FIRST(cond, ACTION, ...) |
| #define | INFO_FIRST(cond, ...) |
| #define | LOG_FIRST(cond, ...) |
| #define | WARN_FIRST(cond, ...) |
| #define | ERR_FIRST(cond, ...) |
| #define | FATAL_FIRST(cond, ...) |
| #define | ZEROERR_LOG_FIRST_(n, cond, ACTION, ...) |
| #define | INFO_FIRST_(n, cond, ...) |
| #define | LOG_FIRST_(n, cond, ...) |
| #define | WARN_FIRST_(n, cond, ...) |
| #define | ERR_FIRST_(n, cond, ...) |
| #define | FATAL_FIRST_(n, cond, ...) |
| #define | DLOG(ACTION, ...) |
| #define | ZEROERR_VERBOSE(v) |
| #define | ZEROERR_LOG_(severity, message, ...) |
| #define | ZEROERR_INFO_(...) |
| #define | ZEROERR_INFO_IMPL(mb_name, v_name, ...) |
| #define | ZEROERR_G_CONTEXT_SCOPE(x) |
| #define | ZEROERR_PRINT_ASSERT_DEFAULT_PRINTER(cond, level, ...) |
| #define | ZEROERR_LOG_GET(func, id, name, type) |
Typedefs | |
| typedef zeroerr::String(* | zeroerr::LogCustomCallback) (const LogMessage &, bool colorful) |
Enumerations | |
| enum | zeroerr::LogSeverity { zeroerr::INFO_l , zeroerr::LOG_l , zeroerr::WARN_l , zeroerr::ERROR_l , zeroerr::FATAL_l } |
Functions | |
| template<typename T, unsigned... I> | |
| zeroerr::String | zeroerr::detail::gen_str (const char *msg, const T &args, seq< I... >) |
| template<typename T> | |
| zeroerr::String | zeroerr::detail::gen_str (const char *msg, const T &, seq<>) |
| void | zeroerr::setLogLevel (LogSeverity level) |
| set the log level | |
| void | zeroerr::setLogCategory (const char *categories) |
| set the log category | |
| void | zeroerr::setLogCustomCallback (LogCustomCallback callback) |
| set the log custom callback, this can support custom format of the log message | |
| void | zeroerr::suspendLog () |
| suspend the log to flush to the file | |
| void | zeroerr::resumeLog () |
| resume the log to flush to the file | |
| template<typename... T> | |
| LogRecord< T... > | zeroerr::makeLogRecord (LogStream &stream, T &&... args) |
| template<typename... T> | |
| LogRecord< T... > | zeroerr::makeLogRecord (T &&... args) |
| template<typename... T> | |
| PushResult | zeroerr::log (T &&... args) |
| template<typename... T> | |
| PushResult | zeroerr::log (LogStream &stream, T &&... args) |
| template<typename F> | |
| ContextScope< F > | zeroerr::MakeContextScope (const F &f) |
| Helper function to create a context scope. | |
Variables | |
| ZEROERR_SUPPRESS_COMMON_WARNINGS_PUSH const char * | ZEROERR_LOG_CATEGORY |
| #define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES |
| #define DLOG | ( | ACTION, | |
| ... ) |
| #define ERR | ( | ... | ) |
| #define ERR_EVERY_ | ( | n, | |
| ... ) |
| #define ERR_FIRST | ( | cond, | |
| ... ) |
| #define ERR_FIRST_ | ( | n, | |
| cond, | |||
| ... ) |
| #define ERR_IF | ( | cond, | |
| ... ) |
| #define ERR_IF_EVERY_ | ( | n, | |
| cond, | |||
| ... ) |
| #define FATAL | ( | ... | ) |
| #define FATAL_EVERY_ | ( | n, | |
| ... ) |
| #define FATAL_FIRST | ( | cond, | |
| ... ) |
| #define FATAL_FIRST_ | ( | n, | |
| cond, | |||
| ... ) |
| #define FATAL_IF | ( | cond, | |
| ... ) |
| #define FATAL_IF_EVERY_ | ( | n, | |
| cond, | |||
| ... ) |
| #define INFO | ( | ... | ) |
| #define INFO_EVERY_ | ( | n, | |
| ... ) |
| #define INFO_FIRST | ( | cond, | |
| ... ) |
| #define INFO_FIRST_ | ( | n, | |
| cond, | |||
| ... ) |
| #define INFO_IF | ( | cond, | |
| ... ) |
| #define INFO_IF_EVERY_ | ( | n, | |
| cond, | |||
| ... ) |
| #define LOG | ( | ... | ) |
| #define LOG_EVERY_ | ( | n, | |
| ... ) |
| #define LOG_FIRST | ( | cond, | |
| ... ) |
| #define LOG_FIRST_ | ( | n, | |
| cond, | |||
| ... ) |
| #define LOG_GET | ( | func, | |
| id, | |||
| name, | |||
| type ) |
| #define LOG_IF | ( | cond, | |
| ... ) |
| #define LOG_IF_EVERY_ | ( | n, | |
| cond, | |||
| ... ) |
| #define VERBOSE | ( | v | ) |
| #define WARN | ( | ... | ) |
| #define WARN_EVERY_ | ( | n, | |
| ... ) |
| #define WARN_FIRST | ( | cond, | |
| ... ) |
| #define WARN_FIRST_ | ( | n, | |
| cond, | |||
| ... ) |
| #define WARN_IF | ( | cond, | |
| ... ) |
| #define WARN_IF_EVERY_ | ( | n, | |
| cond, | |||
| ... ) |
| #define ZEROERR_ERROR | ( | ... | ) |
| #define ZEROERR_FATAL | ( | ... | ) |
| #define ZEROERR_G_CONTEXT_SCOPE | ( | x | ) |
| #define ZEROERR_INFO | ( | ... | ) |
| #define ZEROERR_INFO_ | ( | ... | ) |
| #define ZEROERR_INFO_IMPL | ( | mb_name, | |
| v_name, | |||
| ... ) |
| #define ZEROERR_LOG | ( | ... | ) |
| #define ZEROERR_LOG_ | ( | severity, | |
| message, | |||
| ... ) |
| #define ZEROERR_LOG_EVERY_ | ( | n, | |
| ACTION, | |||
| ... ) |
| #define ZEROERR_LOG_FIRST | ( | cond, | |
| ACTION, | |||
| ... ) |
| #define ZEROERR_LOG_FIRST_ | ( | n, | |
| cond, | |||
| ACTION, | |||
| ... ) |
| #define ZEROERR_LOG_GET | ( | func, | |
| id, | |||
| name, | |||
| type ) |
| #define ZEROERR_LOG_IF | ( | condition, | |
| ACTION, | |||
| ... ) |
| #define ZEROERR_LOG_IF_EVERY_ | ( | n, | |
| cond, | |||
| ACTION, | |||
| ... ) |
| #define ZEROERR_PRINT_ASSERT_DEFAULT_PRINTER | ( | cond, | |
| level, | |||
| ... ) |
| #define ZEROERR_VERBOSE | ( | v | ) |
| #define ZEROERR_WARN | ( | ... | ) |
|
extern |