MBXLogConfiguration
@interface MBXLogConfiguration : NSObject
Class that allows to configure Mapbox SDKs logging per application.
-
Sets the backend which writes the log.
Declaration
Objective-C
+ (void)registerLogWriterBackendForLogWriter: (nullable id<MBXLogWriterBackend>)logWriter;Parameters
logWriterBackend which writes logs, if you provide null for this parameter then previously used logger backend will be replaced with Mapbox default implementation.
-
Set logging level for provided category, all other categories are kept with previous logging level.
Declaration
Objective-C
+ (void)setLoggingLevelForCategory:(nonnull NSString *)category level:(MBXLoggingLevel)level;Parameters
categoryCategory that should be logged only with provided logging level and above. If you provide empty string then logging level will be used for logging entries that are logged without any category. If provided category is equal to “*” then all previously stored per-category logging levels will be erased and provided logging level will be used for all categories.
levelLogging level that will be applied for specified categories or globally.
-
Returns current logging level for provided category.
Declaration
Objective-C
+ (MBXLoggingLevel)getLoggingLevelForCategory:(nonnull NSString *)category;Parameters
categoryLogging category.
MBXLogConfiguration Class Reference