Test logging to console