英題:Fluentd Hacking Guide
30分しかないため斜線部分は今回省く
- Fluentd の起動シーケンスとプラグインの読み込み
Fluentd の設定ファイルのパース- Input Plugin から Output Plugin にデータが渡る流れ
pb-kill-line () { | |
zle kill-line | |
echo -n $CUTBUFFER | pbcopy | |
} | |
pb-kill-whole-line () { | |
zle kill-whole-line | |
echo -n $CUTBUFFER | pbcopy | |
} |
require 'active_support/core_ext/kernel/reporting' | |
require 'monitor' | |
# Monkey patch silence_stream to be thread safe | |
# -> Pull request on Rails: https://github.com/rails/rails/pull/13139 | |
# -> But this will allow us to continue to see log output when running specs | |
# -> It could be we just patch ActiveRecord::SessionStore that triggers the `.quietly` calls | |
# on logging the `find_session_id` calls. | |
module Kernel | |
# Silences any stream for the duration of the block. |
start_server --status-file=/path/to/app/log/start_server.stat \ | |
--port=10080 --signal-on-hup=CONT --dir=/path/to/app -- \ | |
bundle exec --keep-file-descriptors unicorn -c config/unicorn.conf.rb config.ru |