add log handler for monitor