Add new log event when custom post types are published