create a log when create or destroy a course