07-21-2008, 07:30 PM
Obviously this is very very simple, i use this for two reasons, the first is that i want a timestamp on everything without duplicating that code everwhere, and the second is that at some point in my current project i am going to log all the output text to a seperate console window or file and i will just be able to make any changes to that here instead of massive refactoring all over the place. Might be a smart idea to modify it to accept a formatstring and args instead of straight text.
Function outmsg
Usage: outmsg("something to say")
Function outmsg
// Formats debug messages with timestamp
function str'msg
out _s.from(_s.time("MM/dd/yyyy" "HH:mm:ss") " : " msg)
Usage: outmsg("something to say")