Back to Kamal

Custom logging configuration

v1/docs/configuration/logging.md

latest544 B
Original Source

Custom logging configuration

Set these to control the Docker logging driver and options.

Logging settings

These go under the logging key in the configuration file.

This can be specified in the root level or for a specific role.

yaml
logging:

Driver

The logging driver to use, passed to Docker via --log-driver:

yaml
  driver: json-file

Options

Any logging options to pass to the driver, passed to Docker via --log-opt:

yaml
  options:
    max-size: 100m