Added a method for posting logs