adds logging to console