# Log

> Sends a log message to the ChannelService. Log messages are printed to the Console window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.MPE](/engine/6000.6/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule

## Log(string)

Sends a log message to the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Log messages are printed to the Console window.

```csharp
public static void Log(string msg)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The message to send.

## Log(string, LogType)

Sends a log message to the [ChannelService](/engine/6000.6/script-reference/unityeditor/mpe/channelservice.md). Log messages are printed to the Console window.

```csharp
public static void Log(string msg, LogType logType)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The message to send.**** (\[LogType]\(/engine/6000.6/script-reference/unityengine/logtype)): The type of the message (i.e. Info, Warning or Error).
