forming th elog message