Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

Log file type definitions
These define the types of log entries given with kodi::Log() to Kodi. More...

Typedefs

typedef enum ADDON_LOG ADDON_LOG
 

Enumerations

enum  ADDON_LOG {
  ADDON_LOG_DEBUG = 0 , ADDON_LOG_INFO = 1 , ADDON_LOG_WARNING = 2 , ADDON_LOG_ERROR = 3 ,
  ADDON_LOG_FATAL = 4
}
 

Detailed Description

Log file type definitions
These define the types of log entries given with kodi::Log() to Kodi.


Example:

#include <kodi/General.h>
kodi::Log(ADDON_LOG_ERROR, "%s: There is an error occurred!", __func__);
@ ADDON_LOG_ERROR
3 : To report error messages in the log file.
Definition addon_base.h:193
void ATTR_DLL_LOCAL Log(const ADDON_LOG loglevel, const char *format,...)
Add a message to Kodi's log.
Definition kodi-dev-kit/include/kodi/AddonBase.h:1746

Typedef Documentation

◆ ADDON_LOG

typedef enum ADDON_LOG ADDON_LOG

Enumeration Type Documentation

◆ ADDON_LOG

enum ADDON_LOG
Enumerator
ADDON_LOG_DEBUG 

0 : To include debug information in the log file.

ADDON_LOG_INFO 

1 : To include information messages in the log file.

ADDON_LOG_WARNING 

2 : To write warnings in the log file.

ADDON_LOG_ERROR 

3 : To report error messages in the log file.

ADDON_LOG_FATAL 

4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.