Moved logging stuffs into a new namespace.