package ocsigenserver

  1. Overview
  2. Docs
A full-featured and extensible Web server

Install

dune-project
 Dependency

Authors

Maintainers

Sources

5.0.0.tar.gz
md5=ac7f9fcf1aced530061ceb4c76efe475
sha512=5691d1cc53725466bf0548fdaa8b4b624b9ac20aa41152f61020da05696a2d0e3cd010d9d72aa60d55216ca4b1b3938573e00c7d922e034d1080508ec46b47dd

doc/ocsigenserver/Ocsigen_messages/index.html

Module Ocsigen_messagesSource

Writing messages in the logs

Sourceval accesslog : string -> unit

Write a message in access.log

Sourceval errlog : ?section:Lwt_log.section -> string -> unit

Write a message in errors.log

Sourceval warning : ?section:Lwt_log.section -> string -> unit

Write a message in warnings.log

Sourceval console : (unit -> string) -> unit

Write a message in the console (if not called in silent mode)

Sourceval unexpected_exception : exn -> string -> unit

Use that function for all impossible cases in exception handlers (try ... with ... | e -> unexpected_exception ... or Lwt.catch ...). A message will be written in warnings.log. Put something in the string to help locating the problem (usually the name of the function where is has been called).

Sourceval error_log_path : unit -> string

Path to the error log file