package ocsigenserver

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

5.1.2.tar.gz
md5=cc9afaa6cad28fb2b6c803ed6cec308f
sha512=9096bc31a55f9d47f5f9b708b16d8b32cfcab99e514bce086046cf78e9731076bf2adac7e68b4291f3a0e65048e70e7c43fa2df8b80ae0eed62840db3e216b77

doc/ocsigenserver/Ocsigen_messages/index.html

Module Ocsigen_messagesSource

Writing messages in the logs

Sourceval access_sect : Lwt_log_core.section

use Lwt_log.Section.set_level in order to debug

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