LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
logger_log() specifications

Signature

logger_status_t logger_log(logger_t *l, const char *message);
logger_status_t logger_log(logger_t *l, const char *message)
Emit a log message through a logger.
Definition logger.c:77
logger_status_t
Private handle structure for a logger_t.

Purpose

Emit the message message through the logger port.

Preconditions

Invalid arguments

  • l must not be NULL.
  • message must not be NULL.

Success

  • Delegates the log operation to the adapter-facing log callback stored in the logger handle.
  • Returns the value produced by the underlying log callback.

Failure

  • If l == NULL, returns LOGGER_STATUS_INVALID.
  • If message == NULL, returns LOGGER_STATUS_INVALID.

Notes

  • logger_log() exposes the borrower-facing logging operation of the logger port.
  • This function requires a logger handle whose adapter-facing virtual table has been validated at creation time by logger_create().