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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@
9
9
});
10
10
```
11
11
12
-
The logger can also override default behavior of `console.*` methods through a special require:
12
+
- Adds a special require that mimics Node.js 8 runtime logging in Node.js 10 and later runtimes:
13
13
14
14
```js
15
15
require('firebase-functions/logger/compat');
16
16
```
17
17
18
-
In older runtimes, logger prints to the console, and no structured data is saved.
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.
* `LogSeverity` indicates the detailed severity of the log entry. See [LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity) for more.
0 commit comments