Formula for mergelog (fast Apache style logfile merger)