wwServer::LogRequest

Used to log request data into the logging database. Called internally to log requests when request logging is enabled and also used to log errors when errors occur.

You can manually call this method to explicitly log items into the log. Use the first parameter to specify the 'log item detail' for the request.

In Web Connection wwProcess Code you can use:

Server.LogRequest("Reindexed datafiles")

From inside the wwServer startup code:

Server.LogRequest("Failed to initialize SQL Connection","",0,.t.)
o.LogRequest(lcParameter,lcRemoteAddress, lnSeconds, llError)

Parameters

lcParameter
Either the query string for the request, or a message that you want to log. This is essentially the 'detail' that is displayed for the log item.

lcRemoteAddress
Optional - An IP Address for this request

lnSeconds
Optional - number of seconds or partial seconds the request took

llError
Optional - Flag that marks this request as an error

Overloads:


See also:

Class wwServer

© West Wind Technologies, 1996-2024 • Updated: 12/15/15
Comment or report problem with topic