Is it possible to do something like this:
var s:String = format(\"%20d %-10s %s\", time, type, message);
In languages like C, C++, C#, Python,
The printf-as3 project sounds like it should fit your needs