setup erc logging