In the calculation you posted, the author meant to say
$$\log\left(3200 \text{ bar}\right) - \log\left(2701 \text{ bar}\right) = \log\left(\frac{3200}{2701}\right),$$
where the right-hand side actually defines what is meant in the left-hand side. Hence, the logarithm has a dimensionless argument and also returns a dimensionless value.
Remark: I'm keeping the following paragraphs because the comment by Chemomechanics pointed out to an interesting reference (DOI: 10.1021/ed1000476) that exhibits a problem with the argument I presented using a Taylor series. John Davis also pointed out that a similar argument for the function $\frac{1}{x}$ expanded about $x=1$ would lead to an inconsistency. While my argument is wrong, I think that keeping these opposite views in here is interesting.
It doesn't really make sense to take the logarithm of a quantity with units. Both the argument and the result should be dimensionless numbers. The reason can be seen by expanding it in a Taylor series. We get
$$\log(1+x) = x - \frac{x^2}{2} + \frac{x^3}{3} + \cdots$$
Each of these terms has a different power. Hence, if $x$ has units, we'd run into trouble with attempting to compute a quantity that is given by a sum of a meter, with meter squared, with meter cubed, and so on. It is inconsistent.
Due to the same argument, any function that can be written as a Taylor series and it not just a monomial only receives dimensionless arguments.