---
title: "setLogFile"
canonical: "https://help.vicon.com/space/ShogunPost121/1253739647/setLogFile"
format: markdown
---
# Description

Specifies the command logging file. The command log file is where all Shogun Post command feedback gets saved.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `setLogFile path [-noFeedback] [-autoName]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `path` | string | no | The full path to the log file. If you do not specify this, the command log will default to being *CommandLog.log* in the *Logs* folder in yourShogun Post directory. |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `noFeedback` | 0 | — | — | Prevents the new log path from being echoed to the command log. |
| `autoName` | 0 | — | — | Automatically names the log based on the current time and the computer name thatShogun Post is running on. Useful when setting up your own farming system and want to identify a command log with a machine and a script execution. |

## Return value

void

## Examples

```plaintext
// Automatically set the log file, which will be put
// in the Shogun Post app folder, under the Logs folder.
setLogFile -autoName;
 
// Set it to something very specific
setLogFile "c:/mylogfile.log";
```

# Additional information

## Related commands

- [setAutoSaveFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738789)
- [setHotKeyFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737678)
- [setMarkingMenuFile](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736831)