Refactor Log, in a tiny and light way.