[PATCH v4 5/8] log: Add _perror() logging function variants