Module Xenstore_server.Logging
type logger = {
stream : string Lwt_stream.t;
push : string -> unit;
elements : int Stdlib.ref;
max_elements : int;
dropped_elements : int Stdlib.ref;
}
val get : logger -> string list Lwt.t
type level =
| Debug
| Info
| Warn
| Error
| Null
val log_level : level Stdlib.ref
val int_of_level : level -> int
val string_of_level : level -> string
val log : level -> string -> ('a, unit, string, unit) Stdlib.format4 -> 'b
val debug : string -> ('a, unit, string, unit) Stdlib.format4 -> 'a
val info : string -> ('a, unit, string, unit) Stdlib.format4 -> 'a
val warn : string -> ('a, unit, string, unit) Stdlib.format4 -> 'a
val error : string -> ('a, unit, string, unit) Stdlib.format4 -> 'a
val string_of_tid : con:string -> int32 -> string
val disable_coalesce : bool Stdlib.ref
val disable_conflict : bool Stdlib.ref
val disable_commit : bool Stdlib.ref
val disable_newconn : bool Stdlib.ref
val disable_endconn : bool Stdlib.ref
val disable_transaction : bool Stdlib.ref
val disable_request : string list Stdlib.ref
val disable_reply_ok : string list Stdlib.ref
val disable_reply_err : string list Stdlib.ref
val sanitize_data : string -> string
val access_logging :
con:string ->
tid:int32 ->
?data:string ->
access_type ->
unit
val new_connection : con:string -> tid:int32 -> unit
val end_connection : con:string -> tid:int32 -> unit
val read_coalesce : tid:int32 -> con:string -> string -> unit
val write_coalesce : string -> con:string -> tid:int32 -> unit
val conflict : con:string -> tid:int32 -> unit
val commit : con:string -> tid:int32 -> unit
val debug_print : tid:int32 -> con:string -> string -> unit
val start_transaction : tid:int32 -> con:string -> unit
val end_transaction : tid:int32 -> con:string -> unit