Feature request: Time stamps in logs

oripessach

  • *
  • Posts: 259
Some types of bugs are unnecessarily difficult to figure out without sub-second time stamps in the debug log. Anything that's timing related, in particular. It would be helpful if the standard trace() logs included a time stamp.

Photics

  • *
  • Posts: 718
I'm thinking that you might be able to do this manually with the "Print to Console" block and a code block to get the time.
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

oripessach

  • *
  • Posts: 259
 I suppose I could, but then again, log timestamps are a pretty standard feature of debug log libraries, and there's a good reason why that is so - they make debugging timing issues a lot easier, and in some cases, they make debugging those issues at all possible.

Besides, if Stencyl has a block to get the current time, I haven't been able to find it. :)

Photics

  • *
  • Posts: 718
Besides, if Stencyl has a block to get the current time, I haven't been able to find it. :)

I think there should be a timestamp in the log. However, that might not happen right away – if at all. So, using custom haxe code to get the date / timestamp is a way to make more sense out of the logs today. Timestamp / Date are not standard blocks. There is a "Date and Time" extension in the Utilities section... http://www.stencyl.com/developers/market/ ...but I'm not too familiar with that. I've been manually creating code blocks to get the timestamp / date... http://api.haxe.org/Date.html
Michael Garofalohttp://photics.com – Author of The Interactive Stencyl Textbook 8)

oripessach

  • *
  • Posts: 259
Cool - thanks for the pointers.

captaincomic

  • *
  • Posts: 6108
In 3.2 there will be a new logging framework which writes the timestamps to the logs and the new log viewer shows them too.

oripessach

  • *
  • Posts: 259
Awesome. I know this is an obnoxious question to ask, but what's the ETA for 3.2?

rob1221

  • *
  • Posts: 9472
There's no ETA yet, but any subscribers can access the private/nightly build that has the new log viewer.