Use qLogCat for GLog handler.

Provide the domain string from the GLog callback as the category.
This commit is contained in:
Jim Broadus 2020-01-29 21:39:11 -08:00
parent a2d2850884
commit 4b37e0c577
1 changed files with 4 additions and 4 deletions

View File

@ -54,18 +54,18 @@ void GLog(const char* domain, int level, const char* message, void* user_data) {
case G_LOG_FLAG_FATAL:
case G_LOG_LEVEL_ERROR:
case G_LOG_LEVEL_CRITICAL:
qLog(Error) << message;
qLogCat(Error, domain) << message;
break;
case G_LOG_LEVEL_WARNING:
qLog(Warning) << message;
qLogCat(Warning, domain) << message;
break;
case G_LOG_LEVEL_MESSAGE:
case G_LOG_LEVEL_INFO:
qLog(Info) << message;
qLogCat(Info, domain) << message;
break;
case G_LOG_LEVEL_DEBUG:
default:
qLog(Debug) << message;
qLogCat(Debug, domain) << message;
break;
}
}