package ocsigenserver

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

7.0.0.tar.gz
md5=ecf37dc2e2ad43f38dfcca8f87ca04a9
sha512=96dffc87f11b82b810d95d6e0cad69ce12a6763425e6e59f211dd71492d777a0cd1aeca722c0c9fd9ec8bb55cad7ae0ba1c781a8129a18de86f0f3accb278118

doc/ocsigenserver/Ocsigen_messages/index.html

Module Ocsigen_messagesSource

Writing messages in the logs

Sourceval access_sect : Logs.src
Sourceval accesslog : string -> unit

Write a message in access.log

Sourceval errlog : ?section:Logs.src -> string -> unit

Write a message in errors.log

Sourceval warning : ?section:Logs.src -> 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