Adds the ability to switch to a 'faking' mode for activity logging, intended for use when running unit tests.
This mode will not save activities to the database, but will record them internally so that assertions can later be made about what was logged.