> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/scripting-cyberpunk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/scripting-cyberpunk/cyber-engine-tweaks/first-steps/logs-debug.md).

# Logs & Debug

Explaining where to find logs file and write them

## Individual Mod Logs

On game launch, Cyber Engine Tweaks generates individual logs files in each mod folder, using their name. eg, `<`[`cet_path`](#user-content-fn-1)[^1]`>/mods/my_mod/my_mod.log`.

```
../
├─ cyber_engine_tweaks/
│  ├─ mods/
│  │  ├─ my_mod/
│  │  │  ├─ init.lua
│  │  │  ├─ my_mod.log <- automatically generated
```

#### What it contains

This file contains all notices, errors and logs generated by the mod.

#### Write the file

You can write the log file using the [spdlog](/scripting-cyberpunk/cyber-engine-tweaks/cet-functions/misc/debug-functions.md#spdlog) functions.

#### Watch the file

You can use [Tailblazer App](https://github.com/RolandPheasant/TailBlazer) to watch files in live with a GUI, or use the following command line in the Windows Command shell:

{% code title="<cmd>" %}

```
tail -f "C:/path/to/Cyberpunk 2077/bin/x64/plugins/cyber_engine_tweaks/mods/my_mod/my_mod.log"
```

{% endcode %}

## CET Console Logs

Cyber Engine Tweaks has a global log file located in `<`[`cet_path`](#user-content-fn-1)[^1]`>/scripting.log`.

```
../
├─ cyber_engine_tweaks/
│  ├─ scripting.log
```

#### What it contains

This file contains all logs from the [CET Console](https://wiki.redmodding.org/cyber-engine-tweaks/console/console).

#### Write the file

You can write the log file by using the [print()](/scripting-cyberpunk/cyber-engine-tweaks/cet-functions/misc/debug-functions.md#print) function.

#### Watch the file

You can use [Tailblazer App](https://github.com/RolandPheasant/TailBlazer) to watch files in live with a GUI, or use the following command line in the Windows Command shell:

{% code title="<cmd>" %}

```
tail -f "C:/path/to/Cyberpunk 2077/bin/x64/plugins/cyber_engine_tweaks/scripting.log"
```

{% endcode %}

[^1]: The directory where Cyber Engine Tweaks is installed.

    Usually: C:/Program Files (x86)/Steam/steamapps/common/Cyberpunk 2077/bin/x64/plugins/cyber\_engine\_tweaks
