@@ -148,17 +148,17 @@ ObjectManager* Runtime::GetObjectManager() const {
148148 return m_objectManager;
149149}
150150
151- void Runtime::Init (JNIEnv* _env, jobject obj, int runtimeId, jstring filesPath, jstring nativeLibDir, jboolean verboseLoggingEnabled, jboolean isDebuggable, jstring packageName, jobjectArray args, jstring callingDir, int maxLogcatObjectSize) {
151+ void Runtime::Init (JNIEnv* _env, jobject obj, int runtimeId, jstring filesPath, jstring nativeLibDir, jboolean verboseLoggingEnabled, jboolean isDebuggable, jstring packageName, jobjectArray args, jstring callingDir, int maxLogcatObjectSize, bool forceLog ) {
152152 JEnv env (_env);
153153
154154 auto runtime = new Runtime (env, obj, runtimeId);
155155
156156 auto enableLog = verboseLoggingEnabled == JNI_TRUE;
157157
158- runtime->Init (filesPath, nativeLibDir, enableLog, isDebuggable, packageName, args, callingDir, maxLogcatObjectSize);
158+ runtime->Init (filesPath, nativeLibDir, enableLog, isDebuggable, packageName, args, callingDir, maxLogcatObjectSize, forceLog );
159159}
160160
161- void Runtime::Init (jstring filesPath, jstring nativeLibDir, bool verboseLoggingEnabled, bool isDebuggable, jstring packageName, jobjectArray args, jstring callingDir, int maxLogcatObjectSize) {
161+ void Runtime::Init (jstring filesPath, jstring nativeLibDir, bool verboseLoggingEnabled, bool isDebuggable, jstring packageName, jobjectArray args, jstring callingDir, int maxLogcatObjectSize, bool forceLog ) {
162162 LogEnabled = verboseLoggingEnabled;
163163
164164 auto filesRoot = ArgConverter::jstringToString (filesPath);
@@ -183,7 +183,7 @@ void Runtime::Init(jstring filesPath, jstring nativeLibDir, bool verboseLoggingE
183183 auto profilerOutputDirStr = ArgConverter::jstringToString (profilerOutputDir);
184184
185185 NativeScriptException::Init (m_objectManager);
186- m_isolate = PrepareV8Runtime (filesRoot, nativeLibDirStr, packageNameStr, isDebuggable, callingDirStr, profilerOutputDirStr, maxLogcatObjectSize);
186+ m_isolate = PrepareV8Runtime (filesRoot, nativeLibDirStr, packageNameStr, isDebuggable, callingDirStr, profilerOutputDirStr, maxLogcatObjectSize, forceLog );
187187
188188 s_isolate2RuntimesCache.insert (make_pair (m_isolate, this ));
189189}
@@ -408,7 +408,7 @@ static void InitializeV8() {
408408 V8::Initialize ();
409409}
410410
411- Isolate* Runtime::PrepareV8Runtime (const string& filesPath, const string& nativeLibDir, const string& packageName, bool isDebuggable, const string& callingDir, const string& profilerOutputDir, const int maxLogcatObjectSize) {
411+ Isolate* Runtime::PrepareV8Runtime (const string& filesPath, const string& nativeLibDir, const string& packageName, bool isDebuggable, const string& callingDir, const string& profilerOutputDir, const int maxLogcatObjectSize, const bool forceLog ) {
412412 tns::instrumentation::Frame frame (" Runtime.PrepareV8Runtime" );
413413
414414 Isolate::CreateParams create_params;
@@ -611,9 +611,9 @@ Isolate* Runtime::PrepareV8Runtime(const string& filesPath, const string& native
611611 }
612612
613613#ifdef APPLICATION_IN_DEBUG
614- v8::Local<v8::Object> console = Console::createConsole (context, JsV8InspectorClient::consoleLogCallback, maxLogcatObjectSize);
614+ v8::Local<v8::Object> console = Console::createConsole (context, JsV8InspectorClient::consoleLogCallback, maxLogcatObjectSize, forceLog );
615615#else
616- v8::Local<v8::Object> console = Console::createConsole (context, nullptr , maxLogcatObjectSize);
616+ v8::Local<v8::Object> console = Console::createConsole (context, nullptr , maxLogcatObjectSize, forceLog );
617617#endif
618618
619619 /*
0 commit comments