summaryrefslogtreecommitdiff
path: root/config/puma.rb.example
diff options
context:
space:
mode:
Diffstat (limited to 'config/puma.rb.example')
-rw-r--r--config/puma.rb.example8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/puma.rb.example b/config/puma.rb.example
index 10f255a87de..cd7adca157f 100644
--- a/config/puma.rb.example
+++ b/config/puma.rb.example
@@ -68,3 +68,11 @@ tag 'gitlab-puma-worker'
# value is 60 seconds.
#
worker_timeout 60
+
+# Use json formatter
+require_relative "/home/git/gitlab/lib/gitlab/puma_logging/json_formatter"
+
+json_formatter = Gitlab::PumaLogging::JSONFormatter.new
+log_formatter do |str|
+ json_formatter.call(str)
+end \ No newline at end of file