package ppx_log

  1. Overview
  2. Docs
Ppx_sexp_message-like extension nodes for lazily rendering log messages

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=2208f047b699d0661e94415868e8e9e4a6e5287a8eceaf7318f572ccd622859a

doc/ppx_log.syntax/Ppx_log_syntax/index.html

Module Ppx_log_syntaxSource

ppx_log translates to code that references a module Ppx_log_syntax : Ppx_log_types.S expected to be in scope. Normally, this is provided by an actual log implementation, like Async_log. If the module isn't in scope, this library provides a stub implementation with an alert to direct users to the right place.

Sourcetype t
Sourcetype time
Sourcetype return_type = [
  1. | `Ppx_log_syntax_implementation_missing
]
Sourceval would_log : t -> Ppx_log_types.Level.t Base.option -> Base.bool
Sourceval default : return_type
Sourceval message : ?level:Ppx_log_types.Level.t -> ?time:time -> ?tags:(Base.string * Base.string) Base.list -> t -> Ppx_log_types.Message_data.t -> Ppx_log_types.Message_source.t -> return_type
  • alert ppx_log_syntax_not_in_scope In order to use [ppx_log], you need to have a [Ppx_log_syntax] in scope. This is usually provided with [open Async], [open Async_log.Ppx_log_syntax], or [open Async_log_kernel.Ppx_log_syntax].
Sourcemodule Global : sig ... end
OCaml

Innovation. Community. Security.