Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Fix iOS11 Simulator log #1016

Merged
merged 2 commits into from
Oct 16, 2017
Merged

Fix iOS11 Simulator log #1016

merged 2 commits into from
Oct 16, 2017

Conversation

KristianDD
Copy link
Contributor

@KristianDD KristianDD commented Oct 3, 2017

Part of the fix for NativeScript/nativescript-cli#3141 (comment).

Log format for iOS 10.3: "Oct 3 19:07:55 machinename cliapp[15339]: CONSOLE LOG file:///app/main-view-model.js:18:20: Test Console fix..."

Log format for iOS 11: "2017-10-09 13:34:38.527844+0300 localhost cliapp[22235]: (NativeScript) CONSOLE LOG file:///app/main-view-model.js:18:20: Test Console fix.."

@NathanaelA
Copy link
Contributor

@KristianDD - If you pass the --style syslog the log from log is almost identical to the old logging.

@@ -8,7 +8,8 @@ export class IOSLogFilter implements Mobile.IPlatformLogFilter {

if (specifiedLogLevel === this.$loggingLevels.info && data) {
if (pid) {
return data.indexOf(`[${pid}]`) !== -1 ? data.trim() : null;
const mathesPid = data.indexOf(`[${pid}]`) !== -1 || data.indexOf(` ${pid} `) !== -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mathesPid should be matchesPid maybe?

@KristianDD KristianDD force-pushed the kddimitrov/ios-11-logs branch from acb47bc to b78fd25 Compare October 9, 2017 14:54
Copy link
Contributor

@Mitko-Kerezov Mitko-Kerezov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me

@KristianDD KristianDD force-pushed the kddimitrov/ios-11-logs branch from a2f0b85 to 6a482f8 Compare October 16, 2017 07:45
@KristianDD KristianDD merged commit d20d42d into master Oct 16, 2017
@KristianDD KristianDD deleted the kddimitrov/ios-11-logs branch October 16, 2017 07:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants