Improve NSLog output on Android.

This commit is contained in:
Frederik Seiffert 2020-07-08 12:59:15 +02:00
parent 69c9e77afb
commit 3752016412
3 changed files with 11 additions and 3 deletions

View file

@ -1602,7 +1602,10 @@ GSInitializeProcessAndroid(JNIEnv *env, jobject context)
// initialize process
[procLock lock];
fallbackInitialisation = YES;
char *argv[] = { arg0 };
char *argv[] = {
arg0,
"-GSLogSyslog", "YES" // use syslog (available via logcat) instead of stdout/stderr (not available on Android)
};
_gnu_process_args(sizeof(argv)/sizeof(char *), argv, NULL);
[procLock unlock];