The Amplify Logger sends errors that occur when using it through Amplify Hub. To ensure that errors do not occur when logging, log messages should be validated and follow the best security practices. Additionally, you should ensure that log messages do not exceed the [Amazon CloudWatch log event size of 256 KB](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html).

You can get logging error events by listening/subscribing to the logging events from the Amplify Hub.

import iosHubEvents from '/src/fragments/lib/logging/ios/hub_events/hub_events.mdx';
import androidHubEvents from '/src/fragments/lib/logging/android/hub_events/hub_events.mdx';

<Fragments
  fragments={{
    ios: iosHubEvents,
    android: androidHubEvents
  }}
/>