# LOGFILEON Command [GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [L](Help%20System/GSTARCAD/2022/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: /**