type logger = {stream : string Lwt_stream.t; |
push : string -> unit; |
elements : int Stdlib.ref; |
max_elements : int; |
dropped_elements : int Stdlib.ref; |
}val create : int -> loggerval logger : loggerval access_logger : loggerval log_level : level Stdlib.refval int_of_level : level -> intval string_of_level : level -> stringval log : level -> string -> ('a, unit, string, unit) Stdlib.format4 -> 'aval debug : string -> ('a, unit, string, unit) Stdlib.format4 -> 'aval info : string -> ('a, unit, string, unit) Stdlib.format4 -> 'aval warn : string -> ('a, unit, string, unit) Stdlib.format4 -> 'aval error : string -> ('a, unit, string, unit) Stdlib.format4 -> 'atype access_type = | Coalesce |
| Conflict |
| Commit |
| Newconn |
| Endconn |
| Debug of string |
| Start_transaction |
| End_transaction |
| Request of Xs_protocol.Request.payload |
| Response of Xs_protocol.Response.payload * string option |
val string_of_access_type : access_type -> stringval disable_coalesce : bool Stdlib.refval disable_conflict : bool Stdlib.refval disable_commit : bool Stdlib.refval disable_newconn : bool Stdlib.refval disable_endconn : bool Stdlib.refval disable_transaction : bool Stdlib.refval disable_request : string list Stdlib.refval disable_reply_ok : string list Stdlib.refval disable_reply_err : string list Stdlib.refval access_type_disabled : access_type -> boolval access_type_enabled : access_type -> boolval access_logging : con:string -> tid:int32 -> ?data:string -> access_type -> unitval request : tid:int32 -> con:string -> Xs_protocol.Request.payload -> unitval response : tid:int32 -> con:string -> ?info:string -> Xs_protocol.Response.payload -> unit