Log provider class.
More...
#include <logging.hpp>
|
result_t | log (enumint_t logType, result_t resultCode, int32_t nativeCode, String const &origin, String const &message) |
| Write a new entry into the log with current timestamp and caller's process/thread info.
|
bool_t | isEnabled (enumint_t logType) const |
| Returns true if the log category type is enabled and will be handled.
|
gate_logger_t const * | c_impl () const noexcept |
| Returns native C logger implementation object.
|
◆ log()
result_t log |
( |
enumint_t | logType, |
|
|
result_t | resultCode, |
|
|
int32_t | nativeCode, |
|
|
String const & | origin, |
|
|
String const & | message ) |
Write a new entry into the log with current timestamp and caller's process/thread info.
- Parameters
-
[in] | logType | Logging category |
[in] | resultCode | Result code associated with log entry |
[in] | nativeCode | Native status code associated with log entry |
[in] | origin | Originating module name generating the log entry |
[in] | message | Descriptive information about the log entry and its reason |
- Returns
- GATE_RESULT_* result code indicating success or failure of persisting the log record
◆ isEnabled()
bool_t isEnabled |
( |
enumint_t | logType | ) |
const |
Returns true if the log category type is enabled and will be handled.
- Parameters
-
[in] | logType | Logging category to be queried |
- Returns
- true if log category is handled, false if log entries of this category will be discarded/skipped/deleted
◆ c_impl()
gate_logger_t const * c_impl |
( |
| ) |
const |
|
noexcept |
Returns native C logger implementation object.
- Returns
- Pointer to internal logger implementation object
The documentation for this class was generated from the following files: