# Log Method

## Overloads

| [Log(String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.Log.htm#Qlik_Sense_JsonRpc_RpcConnection_Log_System_String_) |  | Method to use when emitting a log message. |
| --- | --- | --- |
| [Log(String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.Log.htm#Qlik_Sense_JsonRpc_RpcConnection_Log_System_String_System_String_) |  | Post message to the DebugConsole. If no debug console is active, then the method has no effect. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.Log.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.Log.htm)

## Log(String)

Method to use when emitting a log message.

### Declaration

```

          protected virtual void Log(string message)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | message | The message to print. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.Log.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.Log.htm)

## Log(String, String)

Post message to the DebugConsole. If no debug console is active, then the method has no effect.

### Declaration

```

          public void Log(string source, string message)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | source | Source identifier. |
| System.String | message | Message to post. |

### Implements

[IRpcConnection.Log(String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IRpcConnection.Log.htm#Qlik_Sense_JsonRpc_IRpcConnection_Log_System_String_System_String_)