加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log.mli 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
(* ========================================================================== *)
(* FPTaylor: A Tool for Rigorous Estimation of Round-off Errors *)
(* *)
(* Author: Alexey Solovyev, University of Utah *)
(* *)
(* This file is distributed under the terms of the MIT license *)
(* ========================================================================== *)
val open_log : ?base_dir:string -> string -> unit
val close : unit -> unit
val append : string -> unit
val formatter : unit -> Format.formatter option
(** Log levels: from the highest to the lowest priorities *)
type level = [`Main | `Important | `Info | `Debug]
(** Returns a log level corresponding to an integer number:
<= 0 -> `Main
1 -> `Important
2 -> `Info
>= 3 -> `Debug *)
val level_of_int : int -> level
val set_log_level : level -> unit
val report : level -> ('b, unit, string, unit) format4 -> 'b
val report_str : level -> string -> unit
val warning : ('b, unit, string, unit) format4 -> 'b
val warning_str : string -> unit
val error : ('b, unit, string, unit) format4 -> 'b
val error_str : string -> unit
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化