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) #if defined(RAUDIO_STANDALONE)
typedef enum { typedef enum {
LOG_INFO = 0, LOG_ALL,
LOG_ERROR, LOG_TRACE,
LOG_WARNING,
LOG_DEBUG, LOG_DEBUG,
LOG_OTHER LOG_INFO,
LOG_WARN,
LOG_ERROR,
LOG_FATAL,
LOG_NONE
} TraceLogType; } TraceLogType;
#endif #endif

View File

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

View File

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