# SET LOGFILE

Open a logfile.

## Syntax

 SET LOGFILE [/APPEND] [/OVERWRITE] "filename" SET LOGFILE [/APPEND] [/OVERWRITE] filename

## Parameters

 `filename` The log file name. `/APPEND` If the file already exists, the subsequent commands are appended to the end of the file without overwriting the old log file content. `/OVERWRITE` If the file already exists, a warning message is issued and the file is overwritten.

## Description

This commands creates the logfile `filename`. The file name must be enclosed in quotation marks if an absolute or relative path is used. Otherwise, the logfile is saved in the working directory of the currently debugged application. All commands given after the command `SET LOGFILE` are stored in the logfile. The file may be used as a batch file for further debug sessions.

## Example

```SET LOGFILE "../reuse.xdb"
SET LOGFILE log.txt
SET LOGFILE "C:\tmp\log.txt"
```