Hermes
|
Logging functions. More...
Go to the source code of this file.
Classes | |
class | hermes::Log |
Static class that manages logging messages. More... | |
struct | hermes::Log::Location |
Holds information about log code location. More... | |
Macros | |
#define | INFO_ENABLED |
#define | HERMES_PING hermes::Log::info("[{}][{}][{}]", __FILE__, __LINE__, __FUNCTION__); |
Logs into info stream code location. | |
#define | HERMES_LOG(FMT, ...) |
Logs into info log stream. More... | |
#define | HERMES_LOG_WARNING(FMT, ...) |
Logs into warning log stream. More... | |
#define | HERMES_LOG_ERROR(FMT, ...) |
Logs into error log stream. More... | |
#define | HERMES_LOG_CRITICAL(FMT, ...) |
Logs into critical log stream. More... | |
#define | HERMES_LOG_VARIABLE(A) |
Logs variable name and value into info log stream. More... | |
#define | HERMES_LOG_ARRAY(A) |
Logs array elements into info log stream. More... | |
#define | HERMES_LOG_VARIABLES(...) hermes::Log::info("[{}][{}][{}]: {}", __FILE__, __LINE__, __FUNCTION__, hermes_log_variables(__VA_ARGS__)) |
Logs multiple variables into info log stream. More... | |
#define | HERMES_C_LOG(FMT, ...) |
Logs into stdout in printf style. More... | |
#define | HERMES_C_LOG_ERROR(FMT, ...) |
Logs into stderr in printf style. More... | |
#define | HERMES_C_DEVICE_LOG(FMT, ...) |
Logs into info stdout from device code. More... | |
#define | HERMES_C_DEVICE_ERROR(FMT, ...) |
Logs into stderr from device code. More... | |
Enumerations | |
enum class | hermes::logging_options { none = 0x00 , info = 0x01 , warn = 0x02 , error = 0x04 , critical = 0x08 , location = 0x10 , time = 0x10 , abbreviate = 0x20 , use_colors = 0x40 , full_path_location = 0x80 , callback_only = 0x100 } |
Options for logging output. More... | |
Functions | |
hermes::HERMES_ENABLE_BITMASK_OPERATORS (logging_options) | |
Logging functions.
Copyright (c) 2021, FilipeCN.
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
strong |
Options for logging output.