ZD Screen Recorder SDK API – ScnLib_SetLogPath()

ScnLib_SetLogPathA/W()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetLogPathA(LPCSTR pcszPath, BOOL bNewLog);
__declspec(dllimport) void __stdcall ScnLib_SetLogPathW(LPCWSTR pcwszPath, BOOL bNewLog);
C# [DllImport("ScnLib.dll", CharSet = CharSet.Unicode)] public static extern void ScnLib_SetLogPathW(string Path, bool NewLog);
Basic Public Declare Unicode Sub ScnLib_SetLogPathW Lib "ScnLib.dll" (ByVal Path As String, ByVal NewLog As Boolean)
Delphi procedure ScnLib_SetLogPathA(const Path: PAnsiChar; NewLog: LongBool); stdcall; external 'ScnLib.dll';
procedure ScnLib_SetLogPathW(const Path: PWideChar; NewLog: LongBool); stdcall; external 'ScnLib.dll';
  • Description
    Set the log file path.

  • Parameters
    • Path [in]
      The log file path, such as “C:\Temp\log.txt”. Assign a zero value or an empty string to deactivate the logging feature.
    • NewLog [in]
      Choose whether to create a new log file or append to an existing one.
  • Return Value
    None.

  • Remarks
    Use this function to set the log file path. The SDK logs diagnostic information, including system briefs, current SDK settings, screen recording statuses, and error messages. This log file can be invaluable for debugging in case of errors. Initially, the log file path is set to an empty string, and no log file is generated. To retrieve the current log file path, call ScnLib_GetLogPathA/W().

  • See Also
    ScnLib_GetLogPathA/W()

Shopping Cart
  • Your cart is empty.
Scroll to Top