# LogPath

> The directory path where the dedicated server writes log files.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.DedicatedServer](/engine/6000.7/script-reference/unityengine/dedicatedserver.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static string LogPath { get; set; }
```

### Remarks

The log directory that Unity parses from the `-logpath` command-line flag. If the flag isn't present, Unity uses the value from Dedicated Server Player settings. If no value is configured, this property returns `null`. When you pass `-logfile` instead of `-logpath`, the getter returns the directory portion of the log file path.
