Configure Marketing Cloud Engagement
Runtime Toggles
Add Geofences
Add Beacons
Enable Beacon Debugging
Event Tracking
Handle URLs
Data Protection and Privacy
Changelog
Proximity logging is disabled by default. You can enable it using AltBeacon’s LogManager class to troubleshoot beacon-related issues.
The following example shows how to enable debug logging for beacons using LogManager. The AltBeacon logger implementation in this example routes its logs through the Engagement MCLogListener interface.
1// Enable verbose logging from AltBeacon
2// This is very noisy and should only be done when an issue occurs.
3LogManager.setVerboseLoggingEnabled(true);
4
5// Pipe AltBeacon's logs through the MarketingCloud MCLogListener interface.
6// This will adhere to the log level set by MarketingCloudSdk.setLogLevel()
7LogManager.setLogger(BeaconLogger())
8
9// You can also implement your own AltBeacon Logger
10LogManager.setLogger(object:Logger {})