add stream operator to Log for mat2-4