Module Stdune.LogSource

Log file

Sourcemodule File : sig ... end
Sourceval init : ?file:File.t -> unit -> unit

Initialise the log file

Sourceval init_disabled : unit -> unit

Initialise this module with a disabled logger, i.e. swallowing error messages.

Sourceval log : (unit -> User_message.Style.t Pp.t list) -> unit

Print the message only the log file (despite verbose mode) if it's set

Sourceval set_forward_verbose : (User_message.t -> unit) -> unit
Sourceval info_user_message : User_message.t -> unit

Print an informative message in the log

Sourceval info : User_message.Style.t Pp.t list -> unit

info paragraphs is a short-hand for:

  info_user_message (User_message.make paragraphs)
Sourceval command : command_line:string -> output:string -> exit_status:Unix.process_status -> unit

Print an executed command in the log

Sourceval verbose : bool ref

Whether we are running in verbose mode