NETINT Codec Library Debug Log
The NETINT Codec Library (including libxcoder) provides full logging of event sequences and information. This includes run time timestamps, for troubleshooting and debugging purposes.
When using the NETINT Codec Library, libxcoder uses the same logging level as specified by FFmpeg’s command line option -loglevel. Please reference the FFmpeg manual page for details. The default level is -loglevel none and the highest level is -loglevel trace
If your application imports libxcoder directly, the logging level may be set by importing ni_utils.h and calling the ni_log_set_level() function. Please refer to the code excerpt below from ni_util.h for enumerations and functions relevant to libxcoder logging.
typedef enum
{
NI_LOG_NONE = 0,
NI_LOG_FATAL = 1,
NI_LOG_ERROR = 2,
NI_LOG_INFO = 3,
NI_LOG_DEBUG = 4,
NI_LOG_TRACE = 5
} ni_log_level_t;
void ni_log_set_level(ni_log_level_t level);
ni_log_level_t ni_log_get_level(void);
ni_log_level_t ff_to_ni_log_level(int fflog_level);