Module pact_matching_ffi::log[][src]

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 string_delete.

Convenience function to direct all logging to a thread 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 thread-local logger to the program.

Attach an additional sink to the thread-local logger.

Initialize the thread-local logger with no sinks.