« Back to Product

Documentation

IPS_GetLogDir

Require: IP-Symcon >= 4.0

 string IPS_GetLogDir ()

Returns

The full path to the IP Symcon log folder

Description

The function returns a string containing the full path to the IP Symcon log folder. Depending on the operating system, the path contains a trailing slash ("/") or backslash ("\").

Example

echo IPS_GetLogDir();
// Examplary output:
/*
//Windows
"C:\Programs\IP-Symcon\logs\"

// Linux, RaspberryPi
"/var/log/symcon/"

// MacOS
"/Library/Logs/Symcon"
*/
Any questions?