export function log()

in src/hooks/registerHook.ts [61:74]


export function log(handler: LogHookHandler): Disposable {
    try {
        return registerHook('log', (coreContext) => {
            return handler(new LogHookContext(coreContext));
        });
    } catch (err) {
        const error = ensureErrorType(err);
        if (error.name === 'RangeError' && error.isAzureFunctionsSystemError) {
            throw new AzFuncSystemError(`Log hooks require Azure Functions Host v4.34 or higher.`);
        } else {
            throw err;
        }
    }
}