• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • mirage
  • Documentation
  • mirage.impl lib
  • Mirage_impl_misc .Log Module
package mirage
  • mirage
    • Mirage
      • Key
      • Project
      • Tool
  • mirage.impl
    • Mirage_impl_argv
    • Mirage_impl_arpv4
    • Mirage_impl_block
    • Mirage_impl_conduit
    • Mirage_impl_console
    • Mirage_impl_dns
    • Mirage_impl_ethernet
    • Mirage_impl_git
    • Mirage_impl_happy_eyeballs
    • Mirage_impl_http
    • Mirage_impl_icmp
    • Mirage_impl_ip
    • Mirage_impl_kv
    • Mirage_impl_mclock
    • Mirage_impl_misc
      • Log
    • Mirage_impl_network
    • Mirage_impl_pclock
    • Mirage_impl_qubesdb
    • Mirage_impl_random
    • Mirage_impl_reporter
    • Mirage_impl_resolver
    • Mirage_impl_stack
    • Mirage_impl_syslog
    • Mirage_impl_tcp
    • Mirage_impl_time
    • Mirage_impl_tracing
    • Mirage_impl_udp
  • mirage.key
    • Mirage_key
      • Alias
      • Arg
      • Set
      • V4
      • V6
  • mirage.target
    • Mirage_target
Legend:
Library
Module
Module type
Parameter
Class
Class type

Log functions

val msg : Logs.level -> 'a Logs.log

See Logs.msg.

val app : 'a Logs.log

app is msg App.

val err : 'a Logs.log

err is msg Error.

val warn : 'a Logs.log

warn is msg Warning.

val info : 'a Logs.log

info is msg Info.

val debug : 'a Logs.log

debug is msg Debug.

val kmsg : ( unit -> 'b ) -> Logs.level -> ( 'a, 'b ) Logs.msgf -> 'b

See Logs.kmsg.

Logging result value Errors

val on_error : ?level:Logs.level -> ?header:string -> ?tags:Logs.Tag.set -> pp:( Format.formatter -> 'b -> unit ) -> use:( 'b -> 'a ) -> ( 'a, 'b ) result -> 'a

See Logs.on_error.

val on_error_msg : ?level:Logs.level -> ?header:string -> ?tags:Logs.Tag.set -> use:( unit -> 'a ) -> ( 'a, [ `Msg of string ] ) result -> 'a

See Logs.on_error_msg.

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct