Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type logger = {
stream : string Lwt_stream.t;
push : string -> unit;
elements : int Pervasives.ref;
max_elements : int;
dropped_elements : int Pervasives.ref;
}
val create : int -> logger
val logger : logger
val access_logger : logger
val log_level : level Pervasives.ref
val int_of_level : level -> int
val string_of_level : level -> string
val log : level -> string -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val debug : string -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val info : string -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val warn : string -> ('a, unit, string, unit) Pervasives.format4 -> 'a
val error : string -> ('a, unit, string, unit) Pervasives.format4 -> 'a
type 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 -> string
val disable_coalesce : bool Pervasives.ref
val disable_conflict : bool Pervasives.ref
val disable_commit : bool Pervasives.ref
val disable_newconn : bool Pervasives.ref
val disable_endconn : bool Pervasives.ref
val disable_transaction : bool Pervasives.ref
val disable_request : string list Pervasives.ref
val disable_reply_ok : string list Pervasives.ref
val disable_reply_err : string list Pervasives.ref
val access_type_disabled : access_type -> bool
val access_type_enabled : access_type -> bool
val access_logging :
con:string ->
tid:int32 ->
?data:string ->
access_type ->
unit
val request : tid:int32 -> con:string -> Xs_protocol.Request.payload -> unit
val response :
tid:int32 ->
con:string ->
?info:string ->
Xs_protocol.Response.payload ->
unit