ampersand style conditional logging