Add log output feature