Min Tseng
Min Tseng

Reputation: 181

iOS Swift - How to save Console Outputs as text files (i.e. println(), NSLog() )

I'm currently trying to set up a simple logger for my application, and figured that i'd be much more convenient if I can just NSLog() onto a text file. Is there a simple method to do this?

Upvotes: 1

Views: 5212

Answers (1)

John Difool
John Difool

Reputation: 5702

You could use ASL, the direct counterpart of syslog that write directly to text file.

Some example code

Useful link

Documentation

Upvotes: 1

Related Questions