Adding a logging method and logging when edit-post loads