> For the complete documentation index, see [llms.txt](https://logger.crashkonijn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://logger.crashkonijn.com/targets/unity-log-target.md).

# Unity Log Target

The Unity Log Target is a target that logs messages to the Unity console.

## Usage

To use the Unity Log Target, you need to add it to the `LoggerConfigScriptable` in the Unity Editor.

![Logger Config Scriptable](https://2974802737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBR6xr8Y0nQGd0upVcxqA%2Fuploads%2Fgit-blob-0f25bd72893e16a8d964d299edcd24ca176d1f16%2Flogger_config_scriptable.png?alt=media)

## Configuration

The different settings for the Unity Log Target define the minimum log level that should be logged to the Unity console, depending on the build type.

* **Unity Editor:** The minimum log level that should be logged to the Unity console when running in the Unity Editor.
* **Debug:** The minimum log level that should be logged to the Unity console when running in a development build.
* **Production:** The minimum log level that should be logged to the Unity console when running in a release build.

![Unity Log Target](https://2974802737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBR6xr8Y0nQGd0upVcxqA%2Fuploads%2Fgit-blob-674f1cb87661ae6d6f013afcb9d24d7277d6a74e%2Funity_log_target.png?alt=media)
