how to get the stringWithFormat
from NSLog()
in Swift?
For example the Console Output is 2016-05-24 18:33:31.543 MyPlayground[15578:143357] This is a test!
, so how to get the 2016-05-24 18:33:31.543
or 2016-05-24 18:33:31.543 MyPlayground[15578:143357]
and save it to a Variable, without printing to Console?