require 'fluent-logger'
log = Fluent::Logger::FluentLogger.new(nil, :host=>'localhost', :port=>24224)
log.post("myapp.access", {"agent"=>"foo"})
fork do
log.post("myapp.access", {"agent"=>"foo"})
end
Last active
December 31, 2015 00:29
-
-
Save nikushi/7907548 to your computer and use it in GitHub Desktop.