Log function invocations