Fixed constructor for log output