examples/log.c: invert filtering impl and conditional