11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

protocolLogging<br />

Syntax<br />

protocolLogging(log_file, log_action, log_level)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

This function will start or stop logging.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

The following table describes each log level and detail.<br />

1-591 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

log_file The name of the file to which the logs will be recorded. The default log file<br />

name is httplog which is created under the current directory.<br />

log_action Either “ON” or “OFF”. The default is “OFF”.<br />

log_level The detail level of logging from 0 - 10. See table below.<br />

protocolLogging Parameters<br />

Parameter Description<br />

0 No logging.<br />

1 Socket open/read/write/close action (no real data) HTTP request: host<br />

info(URL)<br />

log_level Details

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

Saved successfully!

Ooh no, something went wrong!