[PATCH v5 5/9] log: Add _perror() logging function variants