Module pact_ffi::log

source ·
Expand description

Sets up a log sink to view logs from the FFI.

Functions§

  • Fetch the in-memory logger buffer contents. This will only have any contents if the buffer sink has been configured to log to. The contents will be allocated on the heap and will need to be freed with pactffi_string_delete.
  • Convenience function to direct all logging to a task local memory buffer.
  • Convenience function to direct all logging to a file.
  • Convenience function to direct all logging to stderr.
  • Convenience function to direct all logging to stdout.
  • Apply the previously configured sinks and levels to the program. If no sinks have been setup, will set the log level to info and the target to standard out.
  • Attach an additional sink to the thread-local logger.
  • Initialize the FFI logger with no sinks.