---
title: LogFile
slug: logfile
docTags: 
createdAt: 2023-04-19T12:41:34.000Z
---

Specifies the file to be used by the [LogMsg](docId:66N8dnIbKJn8fJX6mVJ-R) command.

:::BlockQuote
LogFile "\<file path>" \<mode>
:::

### Parameters

- the file path parameter is a text parameter that specifies the file path to be used to write to
- mode parameter needs to be a value of either 0 or 1
  - 0 specifies that the file is to be overwritten
  - 1 specifies that the file is to be appended to

### Example

:::BlockQuote
LogFile "C:\log.txt" 0
:::

:::BlockQuote
LogFile "log.txt" 1
:::

