doc: Runnable examples logging.

Also use //! Instead of /*! in liblog.