# Logs & Debug

## 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](/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](/cyber-engine-tweaks/console/console.md).

#### Write the file

You can write the log file by using the [print()](/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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.redmodding.org/cyber-engine-tweaks/first-steps/logs-debug.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
