# LOGFILEON Command
[GstarCAD 2011](../../Index.md) → [Commands](../%28Commands%29.md) → [L](%28L%29.md)
## Function Description:
> Write the text window contents to a file
**Command Entry:**
> LOGFILEON
>
> The contents of the text window are recorded in the log file until you exit the program or use the LOGFILEOFF Command.
>
> You can also control the log file with the OPTIONS Command. Use the Maintain a Log File option on the Open and Save tab in the Options Dialog Box to turn the log file off and on. Use the Files tab to change the location of the log file.
>
> Each drawing saves a log file (with the extension *.log*) that may need periodic deletion as the number of log files continues to grow.
## Other versions with matching text
[GstarCAD 2012](../../../2012/Commands/L/LOGFILEON%20Command.md)