# Log

> Logs message to the Unity Console using default logger.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## Log(LogType, Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(LogType logType, object message)
```

### Parameters

**** (\[LogType]\(/engine/6000.6/script-reference/unityengine/logtype)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).

## Log(LogType, Object, Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(LogType logType, object message, Object context)
```

### Parameters

**** (\[LogType]\(/engine/6000.6/script-reference/unityengine/logtype)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): **** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).

## Log(LogType, string, Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(LogType logType, string tag, object message)
```

### Parameters

**** (\[LogType]\(/engine/6000.6/script-reference/unityengine/logtype)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).

## Log(LogType, string, Object, Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(LogType logType, string tag, object message, Object context)
```

### Parameters

**** (\[LogType]\(/engine/6000.6/script-reference/unityengine/logtype)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): **** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).

## Log(Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(object message)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).

## Log(string, Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(string tag, object message)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).

## Log(string, Object, Object)

Logs `message` to the Unity Console using default logger.

```csharp
void Log(string tag, object message, Object context)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): **** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)):&#x20;

### Remarks

Additional Resources: [Logger.Log](/engine/6000.6/script-reference/unityengine/logger/log.md).
