mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-15 15:58:14 +00:00
Fixing logging level configuration API.
This commit is contained in:
10
src/utils.c
10
src/utils.c
@@ -52,8 +52,8 @@
|
||||
// Global Variables Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Log types messages supported flags (bit based)
|
||||
static unsigned char logTypeFlags = LOG_INFO | LOG_WARNING | LOG_ERROR;
|
||||
// Log types messages
|
||||
static TraceLogType logTypeLevel = LOG_INFO;
|
||||
static TraceLogCallback logCallback = NULL;
|
||||
|
||||
#if defined(PLATFORM_ANDROID)
|
||||
@@ -79,10 +79,10 @@ static int android_close(void *cookie);
|
||||
// Module Functions Definition - Utilities
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Enable trace log message types (bit flags based)
|
||||
void SetTraceLog(unsigned char types)
|
||||
// Set the current threshold (minimum) log level.
|
||||
void SetTraceLogLevel(TraceLogType logType)
|
||||
{
|
||||
logTypeFlags = types;
|
||||
logTypeLevel = logType;
|
||||
}
|
||||
|
||||
// Set a trace log callback to enable custom logging bypassing raylib's one
|
||||
|
Reference in New Issue
Block a user