log when create and destroy a course