Note, that the -ll option passed during service installation has higher priority comparing to the value updated by this method and will take in place after service restart.
And to get the minimum log level used by SDK service at the moment:
Note, that with Trace and Debug levels you will take all requests and responses without any encryption. All keys and token will be logged to the log file. So we recommend to use default option settings (only error logging), Warning or Information (only general data logging) in production.
Protocols Logs
Protocol logs can be enabled via StartVpnRequest using EnableTunnelLogging property.
Once enabled, protocol logs will be stored at the following locations:
// This example shows the launch of the Hydra protocol with enabled logs
var startVpnRequest = new StartVpnRequest
{
AccessToken = loginResponse.AccessToken,
Credentials = getCredentialsResponse.Credentials,
VpnNode = getLocationsResponse.VpnCustomLocations.FirstOrDefault(),
EnableTunnelLogging = true,
};
var startVpnResponse = sdk.StartVpn(startVpnRequest);