append error log in broker server

append error log to monitor the server status.