# &lt;GCKLoggerDelegate&gt; Protocol

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

## Overview

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

Inherits \<NSObjectNSObject\>.

|---|---|
| ## Instance Method Summary ||
| (void) | - [logMessage:atLevel:fromFunction:location:](https://developers.google.com/cast/docs/reference/ios/protocol_g_c_k_logger_delegate-p#ac2f745de070a2f6200a3045856e11ef5) |
|   | Called by the framework to log a message. [More...](https://developers.google.com/cast/docs/reference/ios/protocol_g_c_k_logger_delegate-p#ac2f745de070a2f6200a3045856e11ef5) |
|   ||
| (void) | - [logMessage:fromFunction:](https://developers.google.com/cast/docs/reference/ios/protocol_g_c_k_logger_delegate-p#a178ec6776f66bb879ccdece71c60b618) |
|   | Called by the framework to log a message. [More...](https://developers.google.com/cast/docs/reference/ios/protocol_g_c_k_logger_delegate-p#a178ec6776f66bb879ccdece71c60b618) |
|   ||

## Method Detail

|---|---|
| |---|---|---|---| | - (void) logMessage: |   | (NSString \*) | *message* | | atLevel: |   | (GCKLoggerLevel) | *level* | | fromFunction: |   | (NSString \*) | *function* | | location: |   | (NSString \*) | *location* | |   |   |   |   | | optional |

Called by the framework to log a message.

Parameters
:

    |---|---|
    | message | The log message. |
    | function | The calling function or method. |
    | level | The logging level. |
    | location | The source code location of the log statement. |


Since
:   4.0

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

Called by the framework to log a message.

Parameters
:

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


**[Deprecated:](https://developers.google.com/cast/docs/reference/ios/deprecated#_deprecated000014)**
:   Use [logMessage:atLevel:fromFunction:location:](https://developers.google.com/cast/docs/reference/ios/protocol_g_c_k_logger_delegate-p#ac2f745de070a2f6200a3045856e11ef5 "Called by the framework to log a message. ") instead.