logging render function