ZenDNN Library Logs - ZenDNN Library Logs - 57300

ZenDNN User Guide (57300)

Document ID
57300
Release Date
2026-04-13
Revision
5.2.1 English

Logging is disabled in the ZenDNN library by default. It can be enabled using the environment variable ZENDNNL_<log_module>_LOG_LEVEL before running any test. ZENDNNL_<log_module>_LOG_LEVEL sets the default log level for a specific module. For example, the command export ZENDNNL_API_LOG_LEVEL=4 sets the log level of a module (Example: API, PROFILE) to verbose (4).

The different ACTORS are as follows.

Table 1. Log Actors
Actor Description
COMMON General logging for common operations.
API Logging related to API calls and interfaces.
TEST Logs for testing and validation purposes.
PROFILE Metrics and performance-related logs.
DEBUG Detailed debugging information.

Example

  • To only log info for COMMON, use ZENDNNL_COMMON_LOG_LEVEL=4
  • To only log info for API, use ZENDNNL_API_LOG_LEVEL=4
  • To only log info for TEST, use ZENDNNL_TEST_LOG_LEVEL=4
  • To only log info for DEBUG, use ZENDNNL_DEBUG_LOG_LEVEL=4
  • To only log info for PROFILE, use ZENDNNL_PROFILE_LOG_LEVEL=4

Enable Log Profiling

To enable profiling logs, set the log level for the PROFILE module to verbose (4):

export ZENDNNL_ENABLE_PROFILER=1

export ZENDNNL_PROFILE_LOG_LEVEL=4

The Different Debug Levels (DBGLVL) are as follows.

Table 2. Debug Levels
Debug Level Value
LOG_LEVEL_DISABLED 0
LOG_LEVEL_ERROR 1
LOG_LEVEL_WARNING 2
LOG_LEVEL_INFO 3
LOG_LEVEL_VERBOSE 4