# IW5-Mod Logging System

**URL:** <https://forum.alterware.dev/t/iw5-mod-logging-system/1447>\
**Category:** IW5-Mod Announcements\
**Created:** [January 11, 2025, 10:55am UTC](https://forum.alterware.dev/t/iw5-mod-logging-system/1447 "2025-01-11T10:55:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Future](https://forum.alterware.dev/user_avatar/forum.alterware.dev/future/32/207_2.png) [@Future](https://forum.alterware.dev/u/Future)\
**Post date:** [January 11, 2025, 10:55am UTC](https://forum.alterware.dev/t/iw5-mod-logging-system/1447/1 "2025-01-11T10:55:10Z")

</div>

On IW4x-SP and IW5-Mod, the logging system received a fix that was backported from IW6 Dedicated Servers.

Logging is controlled by the dvar `logfile`. This dvar can have the following values:

- `0`: Logging is disabled.
- `1`: Logging is enabled.
- `2`: Logging is enabled, and the file is flushed after each write.

When the game starts and logging is enabled, a file named `console.log` is created. If this file already exists, the game renames it to a backup file such as `console.log.000`, up to `console.log.019`, allowing for a maximum of 20 backups.

If you open more than one instance of the game, the logging system will attempt to find the first available backup file to write to, as `console.log` will already be in use by the first instance.

The game overwrites the oldest existing log file if all backup slots are filled.

---

<div class="post-metadata">

**Author:** ![Future](https://forum.alterware.dev/user_avatar/forum.alterware.dev/future/32/207_2.png) [@Future](https://forum.alterware.dev/u/Future)\
**Post date:** [January 11, 2025, 10:55am UTC](https://forum.alterware.dev/t/iw5-mod-logging-system/1447/2 "2025-01-11T10:55:15Z")

</div>

Closed on January 11, 2025, 10:55am UTC


