Added a few useful logging snippets for c++-mode and objc-mode