@types/azure-function-log-intercept
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/azure-function-log-intercept

Summary

This package contains type definitions for azure-function-log-intercept (https://github.com/BrianRosamilia/azure-function-log-intercept).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/azure-function-log-intercept.

index.d.ts

import { Context } from "@azure/functions";

/**
 * `console.log` doesn't actually log as you would expect in `node.js` Azure Functions.
 * You are expected to use `context.log` and` context` is not a global object, it's a parameter to your Azure Function
 * so you would have to pass this throughout your modules/functions to get logging like you would expect.
 * This package fixes this with minimal friction, 0 dependencies, and allows you
 * to use `console.log` (and other `console` methods) like normal.
 */
declare function intercept(context: Context): void;

export = intercept;

Additional Details

Credits

These definitions were written by Piotr Błażejewicz.

Dependents (1)

Package Sidebar

Install

npm i @types/azure-function-log-intercept

Weekly Downloads

373

Version

1.0.3

License

MIT

Unpacked Size

4.02 kB

Total Files

5

Last publish

Collaborators

  • types