TomTomSDKLogConfiguration
TomTomSDKLogConfiguration
The Log Configuration module configures logging mechanisms within the TomTom SDK. This module enables developers to define the output location for logs and select which logs to record based on their severity level.
Functionalities
- LocationTracesRecorder establishes the log location using the LoggerOutput type, allowing developers the flexibility to designate the destination for log data, whether it be the console, files, or remote servers.
- LocationTracesRecorderFactory provides a method to configure logging settings using a LogConfiguration object.
API Overview
The following declarations are provided by module TomTomSDKLogConfiguration.
-
Specifies log configuration details
[LoggerOutput]andLoggingLevel.For more information on log configurator see
LogConfigurator.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public class LogConfiguration : NSObject -
Configures the location of the logs (defined by
[LoggerOutput]) and the exact logs that should be written (defined byLogLevel). To useLogConfigurator, you must initialize aLogConfiguration, which takes two parameters:- a list of outputs of the type
[LoggerOutput] a logLevel of the type
LoggingLevel. A typical use case forLogConfiguratorinitialization is as follows:let config = LogConfiguration(outputs: [ConsoleOutput()], logLevel: .critical) LogConfigurator.configure(logConfig: config)
Warning
This may cause unexpected behaviour as only one logger can be defined in the entire app.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.
Declaration
Swift
public class LogConfigurator : NSObject - a list of outputs of the type
TomTom SDK for iOS (0.71.1)
TomTomSDKLogConfiguration