The debug log is exactly that - a debug log. It is not intended for users and not documented. It should not be in memory because then it would be lost in case of a crash. For user output see the statistics window and the
SetStatisticsWindowText script setting, and the
AppendLogfile and
WriteLogfile commands.