added console output to indicate logging