# LOGFILEON Command [GstarCAD 2015](../../Index.md) → [Commands](../%28Commands%29.md) → [L](%28L%29.md) Write the text window contents to a file. > **Command entry:** LOGFILEON Function Description: > The contents of the text window are recorded in the log file until you exit the program or use the LOGFILEOFF Command. > > The log file can also be controled by the OPTIONS command. In th Option Dialog Box, use the Maintain a Log File option on the Open and Save tab to turn the log file on and off. You can change the location of the log file on the File tab. > > Log files (with the extension *.log*) are saved by each drawing. You need to delete the log files periodically as the number of log files continues to grow. ## Other versions with matching text [GstarCAD 8 (2013–2014)](../../../2013/Commands/L/LOGFILEON%20Command--a716db307121.md)