I've read somewhere says storing values in logs is cheaper than storing it in the contract's permanent storage. I wondered if it is the case. If yes, why?
More general question: What is the pros and cons of storing a value in a log and storing them in a variable?