Module type Restful.LOG

module type LOG = sig .. end

Type of log modules; input signature of Restful.Error.

This is the type of log modules which parameterize the Restful.Error module.


type data 
val init : string list -> data
val handler : data ->
Restful.Types.mode -> Netcgi.cgi -> Nethttp.http_status -> unit

Type 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 -> 'a

Type of function that generates error messages; these messages are analogous to those in Apache's error_log file.