Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 3 Line breaks #841

Closed
3 tasks done
jhanzo opened this issue Feb 21, 2017 · 3 comments
Closed
3 tasks done

Swift 3 Line breaks #841

jhanzo opened this issue Feb 21, 2017 · 3 comments

Comments

@jhanzo
Copy link

jhanzo commented Feb 21, 2017

New Issue Checklist

Issue Info

Info Value
Platform Name ios
Platform Version 9.0
CocoaLumberjack Version 3.0.0
Integration Method cocoapods
Xcode Version 8.2
Repro rate 100%
Demo project link N/A

Issue Description and Steps

Since my project has been updated from swift 2.3 to swift 3.0, Xcode console log doesn't display line breaks anymore.

Test has been done with :

DDLogDebug("Hello\nWorld")

which previously worked on version 2.4.0.

Thanks in advance for any support.

@haritowa
Copy link

Any updates?

@sushichop
Copy link
Member

sushichop commented Sep 16, 2018

@jhanzo
Thanks for reporting.

Can you try to use the latest version(CocoaLumberjack 3.4.2 and Swift 4)?
If you want to display line break as Xcode console log, you need to use escape like DDLogDebug("Hello\\nWorld").

DDLogDebug("Hello\\nWorld")
# Displays as following.
# Hello\nWorld

DDLogDebug("Hello\nWorld")
# Displays as following.
# Hello
# World

Thanks.

@sushichop
Copy link
Member

I'm going to close this issue based on the last comments.
Please feel free to reopen it if you still encounters this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants