---
title: "getLogFile"
canonical: "https://help.vicon.com/space/Shogun17/13536607/getLogFile"
format: markdown
---
# Description

Gets the path of the command logging file.

The command logging file captures the output of the Shogun Post Log, storing all Shogun Post command feedback.

The command logging file is specified in the **Directories** section of the **Preferences** dialog or via the command [setLogFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537162).

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getLogFile` |

### Arguments

None

### Flags

None

## Return value

string

## Examples

```plaintext
//get the path of the command logging file into a variable
string $lf = `getLogFile`;
 
//print the path to the log
print $lf;
```

# Additional information

## Related commands

- [setLogFile](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537162)