Log any errors or other useful information and collect usage data.