add console output for log