# LogPath
{: .no_toc }

Returns the path to the log file or NT event-log source established by [**StartLogging**](/tB/Packages/AppGlobalClassObject/_App/StartLogging.md). Read-only.

Syntax: *object*.**LogPath**

*object*
: *required* An object expression that evaluates to an **_App** object. In practice this is the global **App** object.

**LogPath** reflects the *LogTarget* argument passed to the most recent call to **StartLogging**. Before **StartLogging** has been called, **LogPath** returns an empty string.

> [!NOTE]
>
> **LogPath** is not yet implemented in twinBASIC. Reading the property always returns an empty string regardless of whether **StartLogging** has been called.

### See Also

- [StartLogging](/tB/Packages/AppGlobalClassObject/_App/StartLogging.md) method
- [LogEvent](/tB/Packages/AppGlobalClassObject/_App/LogEvent.md) method
- [LogMode](/tB/Packages/AppGlobalClassObject/_App/LogMode.md) property
