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: documentation/docs/fastly:logger/Logger/Logger.mdx
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,6 @@ import {Fiddle} from '@site/src/components/fiddle';
10
10
11
11
The **`Logger` constructor** lets you connect your Fastly Compute application to a [Fastly Named Logger](https://developer.fastly.com/learning/integrations/logging/).
12
12
13
-
**Note**: Can only be used when processing requests, not during build-time initialization.
14
-
15
13
## Syntax
16
14
17
15
```js
@@ -24,7 +22,7 @@ new Logger(name)
24
22
25
23
-`name`_: string_
26
24
- The Fastly Logger which should be associated with this Logger instance
27
-
25
+
28
26
### Return value
29
27
30
28
A new `Logger` object.
@@ -40,7 +38,7 @@ In this example we have a create a logger named `"splunk"` and logs the incoming
0 commit comments