1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/config/custom_log_formatter.rb
Yoann Lecuyer b0c56db7f6 Allow to define a custom formatter for logs (#1816)
* Allow to define a custom formatter for logs
2019-08-01 12:21:23 -07:00

3 lines
92 B
Ruby

log_formatter do |str|
"[#{Process.pid}] [#{Socket.gethostname}] #{Time.now}: #{str}"
end