User Tools

Site Tools


logfile.htm
Navigation:  SQL Driver Strings(General) >====== LOGFILE ====== Previous pageReturn to chapter overviewNext page

DRIVER( 'SQLDriver', '/LOGFILE [= Pathname] message' )

[ LogFile“ = ] SEND(file, '/LOGFILE [= Pathname] message' )

blk2blue.jpg

The LOGFILE driver string turns logging on and off, and optionally writes a message to the log file. Turning the LOGFILE switch on writes Clarion I/O statements processed by the driver to the specified log file. The LOGFILE driver string is equivalent to the Profile switch described in the Debugging Your SQL Application section.

Pathname is the full pathname or the filename of the log file to write. If you do not specify a path, the driver writes the log file to the current directory. If Pathname is omitted, the driver writes the log to SQLDriver.log in the current directory.

If the log file already exists, the driver appends to it; otherwise, the driver creates the log file.

The message is optional, however, if included, it must be surrounded by square brackets ([]) and a space must preceed the opening square bracket.

NoteBox.jpg

/LOGFILE must be the last driver string specified by the DRIVER attribute.

logfile.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1