@@ -148,17 +148,17 @@ ObjectManager* Runtime::GetObjectManager() const {
148
148
return m_objectManager;
149
149
}
150
150
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 ) {
152
152
JEnv env (_env);
153
153
154
154
auto runtime = new Runtime (env, obj, runtimeId);
155
155
156
156
auto enableLog = verboseLoggingEnabled == JNI_TRUE;
157
157
158
- runtime->Init (filesPath, nativeLibDir, enableLog, isDebuggable, packageName, args, callingDir, maxLogcatObjectSize);
158
+ runtime->Init (filesPath, nativeLibDir, enableLog, isDebuggable, packageName, args, callingDir, maxLogcatObjectSize, forceLog );
159
159
}
160
160
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 ) {
162
162
LogEnabled = verboseLoggingEnabled;
163
163
164
164
auto filesRoot = ArgConverter::jstringToString (filesPath);
@@ -183,7 +183,7 @@ void Runtime::Init(jstring filesPath, jstring nativeLibDir, bool verboseLoggingE
183
183
auto profilerOutputDirStr = ArgConverter::jstringToString (profilerOutputDir);
184
184
185
185
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 );
187
187
188
188
s_isolate2RuntimesCache.insert (make_pair (m_isolate, this ));
189
189
}
@@ -408,7 +408,7 @@ static void InitializeV8() {
408
408
V8::Initialize ();
409
409
}
410
410
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 ) {
412
412
tns::instrumentation::Frame frame (" Runtime.PrepareV8Runtime" );
413
413
414
414
Isolate::CreateParams create_params;
@@ -611,9 +611,9 @@ Isolate* Runtime::PrepareV8Runtime(const string& filesPath, const string& native
611
611
}
612
612
613
613
#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 );
615
615
#else
616
- v8::Local<v8::Object> console = Console::createConsole (context, nullptr , maxLogcatObjectSize);
616
+ v8::Local<v8::Object> console = Console::createConsole (context, nullptr , maxLogcatObjectSize, forceLog );
617
617
#endif
618
618
619
619
/*
0 commit comments