Files
openairinterface5g/common/utils/LOG/DOC/arch.md
Robert Schmidt 438de535fa doc: make clone instructions/issues/mailing lists/tags point to Github
- make internal links relative where applicable
- delete link to the wiki, as the documentation is in the main repo, not
  the wiki
- remove some "example in oai code" as the examples either don't exist,
  or are not in that place, and we can reasonably expect people to grep

Signed-off-by: Robert Schmidt <robert.schmidt@openairinterface.org>
2026-06-05 17:16:40 +02:00

993 B

logging facility source files

The oai logging facility is implemented in two source files, located in common/utils/LOG

  1. log.c contains logging implementation
  2. log.h is the logging facility include file containing both private and public data type definitions. It also contain API prototypes.

The logging facility doesn't create any thread, all api's are executed in the context of the caller. The tracing macro's LOG_<X> are all using the logRecord_mt function to output the messages. To keep this function thread safe it must perform a single system call to the output stream. The buffer used to build the message must be specific to the calling thread, which is today enforced by using a variable in the logRecord_mt stack.

Data used by the logging utility are defined by the log_t structure which is allocated at init time, when calling the logInit function.

logging facility main page