# MGLLoggingConfiguration

    @interface MGLLoggingConfiguration : NSObject

The `MGLLoggingConfiguration` object provides a global way to set this SDK logging levels and logging handler.

- `handler`

  The handler this SDK uses to log messages.

  If this property is set to nil or if no custom handler is provided this property is set to the default handler.

  The default handler uses `os_log` and `NSLog` for iOS 10+ and iOS < 10 respectively.

  #### Declaration

  Objective-C

      @property (readwrite, copy, nonatomic, null_resettable)
          MGLLoggingBlockHandler handler;

  Swift

      var handler: MGLLoggingBlockHandler! { get set }

  View Source on GitHub
- `loggingLevel`

  The logging level.

  The default value is `MGLLoggingLevelNone`.

  Setting this property includes logging levels less than or equal to the setted value.

  #### Declaration

  Objective-C

      @property (assign, readwrite, nonatomic) MGLLoggingLevel loggingLevel;

  Swift

      var loggingLevel: MGLLoggingLevel { get set }

  View Source on GitHub
- `sharedConfiguration`

  Returns the shared logging object.

  #### Declaration

  Objective-C

      @property (readonly, nonatomic, class)
          MGLLoggingConfiguration *_Nonnull sharedConfiguration;

  Swift

      class var shared: MGLLoggingConfiguration { get }

  View Source on GitHub