DTNMA Reference Tools v2.0.0 - 7.g88e232c
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
The CACE library provides a general purpose thread-safe logging facility for the library itself and users of the library.
Logging must be initialized once per process using cace_openlog() and should be de-initialized before exiting the process using cace_closelog(). Log events themselves are queued by using one of the severity-specific macros listed below.
The supported log severity values are a subset of the POSIX syslog values with enumerations and descriptions repeated below.
LOG_CRIT
critical conditions, logged by CACE_LOG_CRITLOG_ERR
error conditions, logged by CACE_LOG_ERRLOG_WARNING
warning conditions, logged by CACE_LOG_WARNINGLOG_INFO
informational message, logged by CACE_LOG_INFOLOG_DEBUG
debug-level message, logged by CACE_LOG_DEBUG