module Default:Restful.LOG
The default LOG implementation, logs in Common Log Format to stdout, but only when
running in Http mode; in Cgi mode, the supporting HTTP server is assumed to handle
logging. Error messages via Default.error go to stderr.
type data
val init : string list -> data
val handler : data ->
Restful.Types.mode -> Netcgi.cgi -> Nethttp.http_status -> unitType of function which handles logging. These log messages are
analogous to those in Apache's access_log file. Takes a Restful.Types.mode and
a CGI activation object and an HTTP status then generates a log
message (or not).
See Restful.Log for functions that may be useful in writing your own
LOG modules, and for several pre-defined LOG modules that
you might use instead.
val error : ('a, unit, string, unit) Stdlib.format4 -> 'aType of function that generates error messages; these messages
are analogous to those in Apache's error_log file.