> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/cyber-engine-tweaks/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/cyber-engine-tweaks/first-steps/logs-debug.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
