diff options
author | Tristan Claverie <public@tclaverie.eu> | 2018-04-10 14:21:20 +0200 |
---|---|---|
committer | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-04-10 13:21:20 +0100 |
commit | 58c10c6d546da27e1df2ebd4353f073e3cc2a286 (patch) | |
tree | 9feec15cdbe5061bf63294de4b580de0247e0a5e /dendrite-config.yaml | |
parent | 8a1f3195ca8ae8c78c466418afc16aaa3d64d260 (diff) |
Enable debug logs using a configuration parameter and put all logs in a single file (#379)
Diffstat (limited to 'dendrite-config.yaml')
-rw-r--r-- | dendrite-config.yaml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/dendrite-config.yaml b/dendrite-config.yaml index 7c7b9bf0..249afe60 100644 --- a/dendrite-config.yaml +++ b/dendrite-config.yaml @@ -117,10 +117,27 @@ listen: tracing: # Config for the jaeger opentracing reporter. # See https://godoc.org/github.com/uber/jaeger-client-go/config#Configuration - # for documtation. + # for documentation. jaeger: disabled: true # A list of application service config files to use application_services: config_files: [] + +# The configuration for dendrite logs +logging: + # The logging type, only "file" is supported at the moment + - type: "file" + # The logging level, must be one of debug, info, warn, error, fatal, panic. + level: "info" + # Parameters for this type of log + params: + # File logging must be given a path to a directory. Each component will write to a different file. Logs are rotated each day and gzipped + path: "/var/log/dendrite" + # It is possible to have multiple logging hooks at the same time. + # To save only errors in a different directory, uncomment the following. + # - type: "file" + # level: "error" + # params: + # path: "/var/log/dendrite/errors" |