add Log class for debugging purpose