Reworking log level as incremental.

This commit is contained in:
Marco Lizza 2019-01-20 22:22:21 +01:00
parent 3703430f57
commit c1c801e5c3
3 changed files with 22 additions and 14 deletions

View File

@ -171,11 +171,14 @@ typedef struct MusicData {
#if defined(RAUDIO_STANDALONE)
typedef enum {
LOG_INFO = 0,
LOG_ERROR,
LOG_WARNING,
LOG_ALL,
LOG_TRACE,
LOG_DEBUG,
LOG_OTHER
LOG_INFO,
LOG_WARN,
LOG_ERROR,
LOG_FATAL,
LOG_NONE
} TraceLogType;
#endif

View File

@ -421,13 +421,15 @@ typedef enum {
} ConfigFlag;
// Trace log type
// NOTE: Used for bit masks
typedef enum {
LOG_INFO = 1,
LOG_WARNING = 2,
LOG_ERROR = 4,
LOG_DEBUG = 8,
LOG_OTHER = 16
LOG_ALL, // Display all logs
LOG_TRACE,
LOG_DEBUG,
LOG_INFO,
LOG_WARNING,
LOG_ERROR,
LOG_FATAL,
LOG_NONE // Disable logging
} TraceLogType;
// Keyboard keys

View File

@ -253,11 +253,14 @@ typedef unsigned char byte;
// TraceLog message types
typedef enum {
LOG_INFO = 0,
LOG_ERROR,
LOG_WARNING,
LOG_ALL,
LOG_TRACE,
LOG_DEBUG,
LOG_OTHER
LOG_INFO,
LOG_WARN,
LOG_ERROR,
LOG_FATAL,
LOG_NONE
} TraceLogType;
// Texture formats (support depends on OpenGL version)