Well, except that log (as well as almost every other format : "gamma" refers to the exponent of a power function !) is the opposite of raw : raw is focused on fidelity to the number of photons, log and others on fidelity to how the (human) eye reacts to these photons :
https://prolost.com/blog/rawvslog/