|
Dev Essential
1.6.3
|
#include <a_util/base/delegate.h>#include <a_util/base/types.h>#include <a_util/preprocessor/to_string.h>#include <a_util/strings/strings_format.h>#include <a_util/strings/strings_functions.h>Go to the source code of this file.
Classes | |
| struct | a_util::logging::LogEntry |
| A log entry. More... | |
Namespaces | |
| namespace | a_util |
| Serves as the root component, with common functionality documented in core functionality. | |
| namespace | a_util::logging |
| Serves as component for basic logging functionality. | |
Macros | |
| #define | LOG_ADD_ENTRY(__level, ...) |
| #define | LOG_DUMP(...) |
| #define | LOG_INFO(...) |
| Log a message with LogLevel Info. | |
| #define | LOG_WARNING(...) |
| #define | LOG_ERROR(...) |
Typedefs | |
| typedef experimental::UnaryDelegate< void, const LogEntry & > | a_util::logging::Logger |
Enumerations | |
| enum | a_util::logging::LogLevel { a_util::logging::None = 0 , a_util::logging::Error = 10 , a_util::logging::Warning = 20 , a_util::logging::Info = 30 , a_util::logging::Dump = 40 , a_util::logging::Debug = Dump , a_util::logging::All = 0xFF } |
Functions | |
| void | a_util::logging::addEntry (const LogEntry &entry) |
| void | a_util::logging::addEntry (std::uint8_t log_level, const std::string &message=a_util::strings::empty_string, const std::string &source=a_util::strings::empty_string) |
| void | a_util::logging::setLogger (Logger log) |
| Logger | a_util::logging::getLogger () |
| std::string | a_util::logging::defaultFormat (const LogEntry &entry) |
| void | a_util::logging::defaultLogger (const LogEntry &entry) |
Public API for Logger type, functions and macros
Copyright 2025 Digitalwerk GmbH. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
| #define LOG_ADD_ENTRY | ( | __level, | |
| ... ) |
Add a log entry to the current logger, including current filename and line number
| [in] | __level | The log level |
| [in] | ... | Arguments forwarded to printf()-like formatting |
| #define LOG_ERROR | ( | ... | ) |
| #define LOG_INFO | ( | ... | ) |
| #define LOG_WARNING | ( | ... | ) |