PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Format of the lines in the text file
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HRetrieveLog (Function)
In french: HRécupèreLog
HFSQL Client/ServerAvailable only with this kind of connection
Creates a text file containing the server logs between two given dates.
Remark: This function is an advanced function. Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Récupération des logs du serveur pour 2018
IF HRetrieveLog("MaConnexion", "20180101", "20183112", "C:\Mes Documents\MesLogs.txt") = False THEN
Error("Les logs n'ont pas pu être récupérés: " + HError())
END
Syntax
<Result> = HRetrieveLog(<Connection> , <Start date> , <End date> , <Destination Log file> [, <eye>])
<Result>: Boolean
  • True if the logs have been retrieved,
  • False otherwise. HError is used to identify the error.
<Connection>: String or Variable of type Connection
Connection to the server from which the logs must be retrieved. This connection corresponds to:
<Start date>: Character strings
Date from which the server logs must be retrieved. This date is in "YYYYMMDDHHmmSSCCC" format. If only the date is specified ("YYYYMMDD"), it will be rounded up automatically. For example, "20061121" will be rounded to "20061121000000000".
<End date>: Character string
Date until which the server logs must be retrieved. This date is in "YYYYMMDDHHmmSSCCC" format. If only the date is specified ("YYYYMMDD"), it will be rounded up automatically. For example, "20061121" will be rounded to "20061121235959999".
<Destination Log file>: Character string
Text file into which will be written the content of the server log between the two dates. If this file already exists, it will be overwritten.
<eye>: Optional control name, optional window name or optional integer
Versions 21 and later
Progress Bar:
  • Name of window where the progress bar will be displayed or name of Progress Bar control.
  • Identifier (Handle) of window that displays the progress bar.
WEBDEV - Server code This parameter is ignored.
New in version 21
Progress Bar:
  • Name of window where the progress bar will be displayed or name of Progress Bar control.
  • Identifier (Handle) of window that displays the progress bar.
WEBDEV - Server code This parameter is ignored.
Progress Bar:
  • Name of window where the progress bar will be displayed or name of Progress Bar control.
  • Identifier (Handle) of window that displays the progress bar.
WEBDEV - Server code This parameter is ignored.
Remarks

Format of the lines in the text file

The lines in the text file have the following format:
  • For a call:
    <Taille de la ligne> + TAB + <Type> + TAB + <Identifiant de l'appel> + TAB + <Date> + TAB +
    <Identifiant du thread> + TAB + <Identifiant de contexte> + TAB + <Login> + TAB +
    <Ordinateur client> + TAB + <Application cliente> + TAB + <Version de l'application> + TAB +
    <Numéro de fonction> + TAB + <Paramètres>
  • For the end of a call:
    <Taille de la ligne> + TAB + <Type> + TAB + <Identifiant de l'appel> + TAB +
    <Date>  + TAB +  <Identifiant de contexte> + TAB + <Paramètres>
Where:
  • <Line size> is a 8-character hexadecimal number used to define the size of the line for the logs, the 8 characters not being taken into account in the specified size.
  • <Type> can take the following values:
    • 1: Beginning of function
    • 2: End of function
    • 3: Error
  • <Date> has the following format: YYYYMMDDHHmmSSCCC
  • <Parameters> has the following format:
    • <Identifier of parameter 1> + "=" + <Value of parameter 1> + Charact(0) + Charact(255) +
    • <Identifier of parameter 2> + "=" + <Value of parameter 2> + Charact(0) + Charact(255) + ... +
    • <Identifier of parameter N> + "=" + <Value of parameter N> + Charact(0)
Component: wd270hf.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment