Made log output destination configurable