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