Logger Module
Enables logging of debug information to the LLDB console.
Usage
The Logger module enables logging of debug information to the LLDB console.
Usage of this module is recommended. If you do not enable it, then there is no logging from the Tealium library.
The following platforms are supported:
- iOS
- tvOS
- watchOS
- macOS
Install
Install the Logger module with CocoaPods or Carthage.
CocoaPods
To install the Logger module with CocoaPods, add the following pod to your Podfile:
pod 'tealium-swift/TealiumLogger'
The framework is auto-instantiated. It has a dependency on the TealiumCore
pod. Learn more about CocoaPods installation for iOS.
Carthage
To install the Logger module with Carthage, following these steps:
-
Go to the app target’s General configuration page in Xcode.
-
Add the following framework to the Embedded Binaries section:
TealiumLogger.framework
The framework is auto-instantiated. It has a dependency on TealiumCore
. No additional import statements are necessary. Learn more about Carthage installation for iOS.
Data Layer
No new variables are introduced by this module.
API Reference
There are no public API methods for this module. Control the module by using the settings available in the TealiumConfig
object.
Log Levels
The following log levels are available:
Log Level | Description | Enum value |
---|---|---|
None |
Logging disabled. | TealiumLogLevelValue.none |
Errors |
Only errors are reported. | TealiumLogLevelValue.errors |
Warnings |
Only errors and warnings are reported. | TealiumLogLevelValue.warnings |
Verbose |
All log output are reported, including an entry for each tracking call/dispatch. | TealiumLogLevelValue.verbose |
This page was last updated: January 7, 2023