Implemented logging (refs #13 @0:20)