Take cli options into account when logging