# Printing to the console

To print to the console we use the unity `Debug` class as shown below.

```csharp
Debug.Log("This is a simple log.");
Debug.LogAssert("This is an assert...");
Debug.LogError("This is an error...");
Debug.LogException("This is an exception...");
Debug.LogWarning("This is a warning...");
Debug.Log(new Vector3(0,0,0));
Debug.Log(myvalue);
```

{% hint style="warning" %}
When using the System namespace its Debug class might do some weird stuff.\
\
**You can use**\
\&#xNAN;**`UnityEngine.Debug.Log()`** \
**or simply add**\
\&#xNAN;**`using Debug = UnityEngine.Debug;`** \
**at the top of your class after the imports.**
{% endhint %}
