---
title: "MTLog | Mobile sdk | Mobile sdk ios | Ios"
description: "Log object used with MTLogger."
---

> 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.

# MTLog

```
public struct MTLog
```

Log object used with MTLogger.

-   `[message](#/s:11MapTilerSDK5MTLogV7messageSSvp)`
    
    Log message.
    
    #### Declaration
    
    Swift
    
    ```
    public var message: String
    ```
    
-   `[type](#/s:11MapTilerSDK5MTLogV4typeAA0D4TypeOvp)`
    
    Type of the log.
    
    #### Declaration
    
    Swift
    
    ```
    public var type: MTLogType
    ```
    
-   `[printLog()](#/s:11MapTilerSDK5MTLogV8printLogyyF)`
    
    Prints the log to the console.
    
    #### Declaration
    
    Swift
    
    ```
    public func printLog()
    ```
