Ocsigen_messagesSourceWriting messages in the logs
Write a message in access.log
Write a message in errors.log
Write a message in warnings.log
Write a message in the console (if not called in silent mode)
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).
Path to the error log file