switch logging to console