logging function completed