How to add timestamp into log file?

  I want to analysis the error message in my log file. And I need to know when each line was recorded. But the log file does not contains timestamp at the beginning of each line. My question is, is there any way to add timestamp into each line of log file?    
1 answers

Timestamps always get added to any logfile. In StudioPro they show up in the first column of the console-tab:


and they are always at the start of the loglines:


Apparently you do not see them. So either the tool you are using is removing them, or the view in your Apple’s logviewer is not showing them.