Make logging to STDOUT optional