From ab8a2ce1abf437578ee745d0e4436c3dc48f5340 Mon Sep 17 00:00:00 2001 From: Tyler Treat Date: Tue, 29 Dec 2020 14:00:12 -0700 Subject: [PATCH] Update embedded NATS docs Document how to enable NATS logging. --- documentation/embedded_nats.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/documentation/embedded_nats.md b/documentation/embedded_nats.md index b9240a35..fbe15ff2 100644 --- a/documentation/embedded_nats.md +++ b/documentation/embedded_nats.md @@ -16,11 +16,14 @@ how this can be done. To run an embedded NATS server with the [default configuration](https://docs.nats.io/nats-server/configuration#configuration-properties), simply enable the `embedded` setting in the [`nats`](./configuration.md#nats-configuration-settings) -configuration (or equivalent `--embedded-nats` command-line flag). +configuration (or equivalent `--embedded-nats` command-line flag). Set +`logging.nats` to enable logging for the NATS server. ```yaml nats: embedded: true + +logging.nats: true ``` This will start a NATS server bound to `0.0.0.0:4222` with default settings. @@ -31,11 +34,14 @@ To run an embedded NATS server with custom configuration, use the [`embedded.config`](./configuration.md#nats-configuration-settings) setting (or equivalent `--embedded-nats-config` command-line flag) to specify a [NATS configuration file](https://docs.nats.io/nats-server/configuration) to use. By -specifying this, the `embedded` setting will be automatically enabled. +specifying this, the `embedded` setting will be automatically enabled. Set +`logging.nats` to enable logging for the NATS server. ```yaml nats: embedded.config: nats.conf + +logging.nats: true ``` This will start a NATS server using the specified configuration file.