Skip to content

Commit dfa3a30

Browse files
authored
Update docs/reference/morgan.md
1 parent a2684ea commit dfa3a30

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/reference/morgan.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,16 @@ app.use(morgan(ecsFormat({ apmIntegration: false })));
267267

268268
### `ecsFormat([options])` [morgan-ref-ecsFormat]
269269

270-
* `options` `{{type-object}}` The following options are supported:
271-
272-
* `format` `{{type-string}}` A format **name** (e.g. *combined*), format function (e.g. `morgan.combined`), or a format string (e.g. *:method :url :status*). This is used to format the "message" field. Defaults to `morgan.combined`.
273-
* `convertErr` `{{type-boolean}}` Whether to convert a logged `err` field to ECS error fields. **Default:** `true`.
274-
* `apmIntegration` `{{type-boolean}}` Whether to enable APM agent integration. **Default:** `true`.
275-
* `serviceName` `{{type-string}}` A "service.name" value. If specified this overrides any value from an active APM agent.
276-
* `serviceVersion` `{{type-string}}` A "service.version" value. If specified this overrides any value from an active APM agent.
277-
* `serviceEnvironment` `{{type-string}}` A "service.environment" value. If specified this overrides any value from an active APM agent.
278-
* `serviceNodeName` `{{type-string}}` A "service.node.name" value. If specified this overrides any value from an active APM agent.
279-
* `eventDataset` `{{type-string}}` A "event.dataset" value. If specified this overrides the default of using `${serviceVersion}`.
270+
* `options` `{type-object}` The following options are supported:
271+
272+
* `format` `{type-string}` A format **name** (e.g. *combined*), format function (e.g. `morgan.combined`), or a format string (e.g. *:method :url :status*). This is used to format the "message" field. Defaults to `morgan.combined`.
273+
* `convertErr` `{type-boolean}` Whether to convert a logged `err` field to ECS error fields. **Default:** `true`.
274+
* `apmIntegration` `{type-boolean}` Whether to enable APM agent integration. **Default:** `true`.
275+
* `serviceName` `{type-string}` A "service.name" value. If specified this overrides any value from an active APM agent.
276+
* `serviceVersion` `{type-string}` A "service.version" value. If specified this overrides any value from an active APM agent.
277+
* `serviceEnvironment` `{type-string}` A "service.environment" value. If specified this overrides any value from an active APM agent.
278+
* `serviceNodeName` `{type-string}` A "service.node.name" value. If specified this overrides any value from an active APM agent.
279+
* `eventDataset` `{type-string}` A "event.dataset" value. If specified this overrides the default of using `${serviceVersion}`.
280280

281281

282282
Create a formatter for morgan that emits in ECS Logging format.

0 commit comments

Comments
 (0)