Implemented logging mechanism