---
title: "MTLoggable | Mobile sdk | Mobile sdk ios | Ios"
description: "Protocol requirement for all Logger objects."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTLoggable

```
public protocol MTLoggable : Sendable
```

Protocol requirement for all Logger objects.

-   `[log(_:type:)](#/s:11MapTilerSDK10MTLoggableP3log_4typeySS_AA9MTLogTypeOtYaF)` Asynchronous
    
    Logs the message with type.
    
    #### Declaration
    
    Swift
    
    ```
    func log(_ message: String, type: MTLogType) async
    ```
