LogConfigurator
public class LogConfigurator : NSObject
Configures the location of the logs (defined by [LoggerOutput]) and the exact logs that should be written (defined by LogLevel).
To use LogConfigurator, you must initialize a LogConfiguration, 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.
Important
This is a Public Preview API. It may be changed or removed at any time.
-
Sets up given configuration.
Declaration
Swift
public static func configure(logConfig: LogConfiguration)Parameters
logConfigLogConfiguration, the configuration to use for the logger.
TomTom SDK for iOS (0.53.1)
LogConfigurator