update logging functionality to append to list