Up

module Extended_log

: sig
#
module Console : sig
#
val output : ?debug:Textutils.Std.Console.Ansi.attr list -> ?info:Textutils.Std.Console.Ansi.attr list -> ?error:Textutils.Std.Console.Ansi.attr list -> Async.Std.Writer.t -> Async.Std.Log.Output.t

returns a Log.Output.t given optional styles (i.e. values of type Ansi.t list) for each of the `Debug, `Info, and `Error log levels. The default styling is to display debug messages in yellow, error messages in red, and info messages without any additional styling.

create doesn't take a format argument because colorized output should be read by humans.

#
module Blocking : sig
#
val output : ?debug:Textutils.Std.Console.Ansi.attr list -> ?info:Textutils.Std.Console.Ansi.attr list -> ?error:Textutils.Std.Console.Ansi.attr list -> Core.Std.Out_channel.t -> Async.Std.Log.Blocking.Output.t

as output but for use with non-async logs

end
end
#
module Syslog : sig
#
val output : unit -> Async.Std.Log.Output.t

output () return a Log.Output.t for use with Async.Log.

#
module Blocking : sig
#
val output : unit -> Async.Std.Log.Blocking.Output.t
end
end
end