You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Adds `functions.logger` SDK to enable structured logging in the Node.js 10 runtime. For example:
2
-
3
-
```js
4
-
constfunctions=require('firebase-functions');
5
-
6
-
functions.logger.debug('example log with structured data', {
7
-
uid:user.uid,
8
-
authorized:true,
9
-
});
10
-
```
11
-
12
-
- Adds a special require that mimics Node.js 8 runtime logging in Node.js 10 and later runtimes:
13
-
14
-
```js
15
-
require('firebase-functions/lib/logger/compat');
16
-
```
17
-
18
-
In newer runtimes, requiring this will emit text logs with multi-line support and appropriate severity. In the Node.js 8 runtime, the `compat` module has no effect.
19
-
20
-
- Fixes `https.onRequest` type signature to allow Promises for `async` functions.
0 commit comments