Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-06-06 02:10:58 +0300
committerJohn Cai <jcai@gitlab.com>2019-06-27 22:32:18 +0300
commit7de57dbbf34a94b565bf8e7481bdb4944b3a344f (patch)
tree7baa03878b079d3265592671b45bf6e4de2282fd /doc/configuration/logging.md
parent8d52596e33bf98558399b8d86f870d741769e575 (diff)
Pass down log config through env vars
Diffstat (limited to 'doc/configuration/logging.md')
-rw-r--r--doc/configuration/logging.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/configuration/logging.md b/doc/configuration/logging.md
new file mode 100644
index 000000000..139a7ed0b
--- /dev/null
+++ b/doc/configuration/logging.md
@@ -0,0 +1,41 @@
+# Logging
+
+The following values configure logging in Gitaly under the `[logging]` section
+
+### dir
+
+While main gitaly application logs go to stdout, there are extra log files that go to a configured directory. These include:
+
+1. Gitlab shell logs
+
+### format
+
+The format of log messages. The current supported format is `json`. Any other value will be ignored and the default `text` format will be used.
+
+### level
+
+The log level. Valid values are the following:
+
+1. `trace`
+1. `debug`
+1. `info`
+1. `warn`
+1. `error`
+1. `fatal`
+1. `panic`
+
+The default log level is `info`.
+
+#### Gitlab Shell Exceptions
+
+Gitlab Shell does not spport `panic` or `trace`. `panic` will fall back to `error`, while `trace` will fall back to `debug`. Any other invalid log levels
+will default to `info`.
+
+## Format
+
+```toml
+[logging]
+dir = "/home/gitaly/logs"
+format = "json"
+level = "info"
+``` \ No newline at end of file