Module Restful.Log

module Log: sig .. end

Predefined LOG modules and utility functions for writing new ones.


val clf_format : ?ident:string ->
?authuser:string ->
?time:float ->
?bytes:int ->
?host:string ->
?request:string -> Nethttp.http_status -> Netcgi.cgi -> string

clf_format ?ident ?authuser ?time ?bytes ?host ?request status cgi formats a line in Common Log Format from the status and the CGI activation. You can override various bits with the optional parameters.

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.

module Null: Restful.LOG 

This LOG implementation does no logging at all, except for error messages via Default.error, which go to stderr.

module Year_month: Restful.LOG