# LOGFILEON Command
[GstarCAD 2025](Help%20System/GSTARCAD/2025/Index.md) → [Commands](Help%20System/GSTARCAD/2025/Commands/(Commands).md)
**Function Description:**
This command is used to write the history of the command to a file. The contents of the text window are recorded in log files until users exit the program or use the LOGFILEOFF command. Each drawing saves a log file with the extension of ".log". Users need to delete them on a regular interval as the file number growing.
**Command Access:**
> **Icon:** /
> **Menu:** /
> **Ribbon:** /
> **Toolbar:** /
> **Command:** LOGFILEON
> **Alias:** /
**Command Prompts: /**
---
**Related Concepts:**
- [About Navigating and Editing Within the Command Window](Help%20System/GSTARCAD/2025/Commands/02%20Concepts/About%20Navigating%20and%20Editing%20Within%20the%20Command%20Window.md)
**Related Tasks:**
- [To Open Command Windows](Help%20System/GSTARCAD/2025/Commands/01%20Procedures/To%20Open%20Command%20Windows.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2025_en-US/detail/commandReferences/LOGFILEON.html) · © Gstarsoft Co., Ltd.