compile-time conditional logger; got 1500 reads per second without log and with empty files