|
Open Deep Learning API
|
Go to the source code of this file.
Typedefs | |
| typedef void(* | odla_logging_func) (const char *file_name, int line, const char *func_name, odla_log_level level, const char *msg) |
| Logging function type. More... | |
Enumerations | |
| enum | odla_log_level { ODLA_LOG_LEVEL_OFF , ODLA_LOG_LEVEL_FATAL , ODLA_LOG_LEVEL_ERROR , ODLA_LOG_LEVEL_WARN , ODLA_LOG_LEVEL_INFO , ODLA_LOG_LEVEL_DEBUG , ODLA_LOG_LEVEL_TRACE } |
| log level enum More... | |
Functions | |
| ODLA_API_EXPORT odla_status ODLA_API_CALL | odla_SetLogLevel (odla_log_level level) |
| Set current log level. More... | |
| ODLA_API_EXPORT odla_status ODLA_API_CALL | odla_SetLogger (odla_logging_func logger) |
| Set active logger. More... | |
| ODLA_API_EXPORT odla_logging_func ODLA_API_CALL | odla_GetLogger () |
| Get active logger. More... | |
This file defines the ODLA log related APIs.
Definition in file odla_log.h.
| typedef void(* odla_logging_func) (const char *file_name, int line, const char *func_name, odla_log_level level, const char *msg) |
Logging function type.
Definition at line 43 of file odla_log.h.
| enum odla_log_level |
log level enum
Definition at line 32 of file odla_log.h.
| ODLA_API_EXPORT odla_logging_func ODLA_API_CALL odla_GetLogger | ( | ) |
Get active logger.
| ODLA_API_EXPORT odla_status ODLA_API_CALL odla_SetLogger | ( | odla_logging_func | logger | ) |
Set active logger.
| logger | the function pointer to logger |
| ODLA_API_EXPORT odla_status ODLA_API_CALL odla_SetLogLevel | ( | odla_log_level | level | ) |
Set current log level.
| level | the log level used |