Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A structured logger for Fluent (Ruby)
branch: master

This branch is 93 commits behind fluent:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
AUTHORS
COPYING
ChangeLog
Gemfile
README.rdoc
Rakefile
VERSION
fluent-logger.gemspec

README.rdoc

Fluent logger

A structured event loger

Examples

Simple

require 'fluent-logger'

log = Fluent::Logger::FluentLogger.new(nil, 'localhost', 24224)

log.post("myapp.access", {"agent=>"foo"})
#=> myapp.access {"agent":"foo"}

Singleton

require 'fluent-logger'

Fluent::Logger::FluentLogger.open(nil, 'localhost', 24224)

Fluent::Logger.post("myapp.access", {"agent=>"foo"})
#=> myapp.access {"agent":"foo"}

Tag prefix

require 'fluent-logger'

log = Fluent::Logger::FluentLogger.new('myapp', 'localhost', 24224)

log.post("access", {"agent=>"foo"})
#=> myapp.access {"agent":"foo"}

Loggers

Fluent

Fluent::Logger::FluentLogger.open('tag_prefix', 'host', port=24224)

Console

Fluent::Logger::ConsoleLogger.open(io)

Syslog

Fluent::Logger::SyslogLogger.open(ident=$0, level=:info)

Web site

fluent.github.com/

Documents

fluent.github.com/doc/

Source repository

github.com/fluent/fluent-logger-ruby

Author

Sadayuki Furuhashi

Copyright

© 2011 FURUHASHI Sadayuki

License

Apache License, Version 2.0

Something went wrong with that request. Please try again.