diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-20 02:18:05 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-21 03:24:11 -0600 |
commit | 076bce8727d3f02cc3cbf6cdfb560a758185aaf3 (patch) | |
tree | 036751633485acaa313a5b4c758d06f276202e7f /service/ipc_client.go | |
parent | conf: expose configuration root directory (diff) | |
download | wireguard-windows-076bce8727d3f02cc3cbf6cdfb560a758185aaf3.tar.xz wireguard-windows-076bce8727d3f02cc3cbf6cdfb560a758185aaf3.zip |
ringlogger: introduce basic file ring logging
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/ipc_client.go')
-rw-r--r-- | service/ipc_client.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/service/ipc_client.go b/service/ipc_client.go index e6295b91..7e260ea7 100644 --- a/service/ipc_client.go +++ b/service/ipc_client.go @@ -141,6 +141,11 @@ func IPCClientQuit(stopTunnelsOnQuit bool) (bool, error) { return alreadyQuit, rpcClient.Call("ManagerService.Quit", stopTunnelsOnQuit, &alreadyQuit) } +func IPCClientLogFilePath() (string, error) { + var path string + return path, rpcClient.Call("ManagerService.LogFilePath", uintptr(0), &path) +} + func IPCClientRegisterTunnelChange(cb func(tunnel *Tunnel, state TunnelState, err error)) *TunnelChangeCallback { s := &TunnelChangeCallback{cb} tunnelChangeCallbacks[s] = true |