This is a simple connector example that just uses the logging system to save audit messages for import in setups with splunk that'll read these and build more complex monitoring setups.
A more complex example that imports a standard connector (WS Consumer) and also has self-references.