Skip to content

Instantly share code, notes, and snippets.

@nikushi
Last active December 31, 2015 00:29
Show Gist options
  • Save nikushi/7907548 to your computer and use it in GitHub Desktop.
Save nikushi/7907548 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment