# &lt;GCKLoggerDelegate&gt; Protocol

[Instance Methods](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_logger_delegate-p#pub-methods) \<GCKLoggerDelegate\> Protocol Reference

## Overview

The [GCKLogger](https://developers.google.com/cast/v3/reference/ios/interface_g_c_k_logger "A singleton object used for logging by the framework. ") delegate protocol.

Inherits \<NSObjectNSObject\>.

|---|---|
| ## Instance Method Summary ||
| (void) | - [logFromFunction:message:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_logger_delegate-p#a9e1ae2c11ec338029f11a5beb08e6a02) |
|   | Logs a message. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_logger_delegate-p#a9e1ae2c11ec338029f11a5beb08e6a02) |
|   ||
| (void) | - [logMessage:fromFunction:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_logger_delegate-p#a178ec6776f66bb879ccdece71c60b618) |
|   | Logs a message. [More...](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_logger_delegate-p#a178ec6776f66bb879ccdece71c60b618) |
|   ||

## Method Detail

|---|---|
| |---|---|---|---| | - (void) logFromFunction: |   | (const char \*) | *function* | | message: |   | (NSString \*) | *message* | |   |   |   |   | | optional |

Logs a message.

**[Deprecated:](https://developers.google.com/cast/v3/reference/ios/deprecated#_deprecated000028)**
:   Use [logMessage:fromFunction:](https://developers.google.com/cast/v3/reference/ios/protocol_g_c_k_logger_delegate-p#a178ec6776f66bb879ccdece71c60b618 "Logs a message. ") instead.

Parameters
:

    |---|---|
    | function | The calling function, normally `__func__`. |
    | message | The log message. |


|---|---|
| |---|---|---|---| | - (void) logMessage: |   | (NSString \*) | *message* | | fromFunction: |   | (NSString \*) | *function* | |   |   |   |   | | optional |

Logs a message.

Parameters
:

    |---|---|
    | function | The calling function, normally obtained from `__func__`. |
    | message | The log message. |