logger: add skip option for conditional logging

closes #997