UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

protocolLogging Syntax protocolLogging(log_file, log_action, log_level) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description This function will start or stop logging. Parameters The following table describes each parameter of the syntax. Parameter Description The following table describes each log level and detail. 1-591 UniBasic Commands Reference log_file The name of the file to which the logs will be recorded. The default log file name is httplog which is created under the current directory. log_action Either “ON” or “OFF”. The default is “OFF”. log_level The detail level of logging from 0 - 10. See table below. protocolLogging Parameters Parameter Description 0 No logging. 1 Socket open/read/write/close action (no real data) HTTP request: host info(URL) log_level Details

Parameter Description 2 Level 1 logging plus socket data statistics (size, and so forth). 3 Level 2 logging plus all data actually transferred. 4-10 More detailed status data to assist debugging. log_level Details (continued) The following table describes the status of each return code. Return Code Status 0 Success. 1 Failed to start logging. Return Code Status protocolLogging 1-592

Parameter Description<br />

2 Level 1 logging plus socket data statistics (size, and so forth).<br />

3 Level 2 logging plus all data actually transferred.<br />

4-10 More detailed status data to assist debugging.<br />

log_level Details (continued)<br />

The following table describes the status of each return code.<br />

Return<br />

Code Status<br />

0 Success.<br />

1 Failed to start logging.<br />

Return Code Status<br />

protocolLogging 1-592

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!