                     break;
             }
         }
+
+        private function zeroPad(value:int, length:int, pad:String = '0'):String {
+            var result:String = String(value);
+            while (result.length < length) {
+                result = pad + result;
+            }
+            return result;
+        }
     }
 }

                    // Clean target
                    if (data['target'].indexOf('object') != -1) {
                        traceItem.target = String(data['target']).replace('object ', '');
                    }else{
                        traceItem.target = data["target"];
                    }



                    // Format the properties
                    date = data["date"];
                    time = zeroPad(date.getHours(), 2) + ":" + zeroPad(date.getMinutes(), 2) + ":" + zeroPad(date.getSeconds(), 2) + "." + zeroPad(date.getMilliseconds(), 3);
                    memory = Math.round(data["memory"] / 1024) + " Kb";

                    // Create the trace object
