NATS logging driver
NATS logging driver
Docker logging driver for sending container the logs as events published to NATS in JSON format.
Usage
You can configure the default logging driver by passing the --log-driver
option to the Docker daemon:
$ dockerd --log-driver=nats
You can set the logging driver for a specific container by using the --log-driver
option to docker run
:
$ docker run --log-driver=nats ...
This log driver does not implement a reader so it is incompatible with docker logs
.
nats options
You can use the --log-opt NAME=VALUE
flag to customize the logging driver for NATS: