# LOGFILEON Command [GstarCAD 2023](Help%20System/GSTARCAD/2023/Index.md) → [Commands](Help%20System/GSTARCAD/2023/Commands/(Commands).md) → [L](Help%20System/GSTARCAD/2023/Commands/L/(L).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/2023/Commands/02%20Concepts/About%20Navigating%20and%20Editing%20Within%20the%20Command%20Window.md) **Related Tasks:** - [To Open Command Windows](Help%20System/GSTARCAD/2023/Commands/01%20Procedures/To%20Open%20Command%20Windows.md) --- [Original help](https://www.gstarcad.net/help/GstarCAD_2023_en-US/detail/commandReferences/LOGFILEON.html) · © Gstarsoft Co., Ltd.