Skip to content

Commit

Permalink
Update usage in README
Browse files Browse the repository at this point in the history
It has changed at fluent#16 (see also fluent#17).
  • Loading branch information
eagletmt committed Nov 11, 2014
1 parent 2ea263a commit e6e1d93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end
```ruby
require 'fluent-logger'

Fluent::Logger::FluentLogger.open(nil, :host=>'localhost', :port=>24224)
Fluent::Logger.open(Fluent::Logger::FluentLogger, nil, :host=>'localhost', :port=>24224)
Fluent::Logger.post("myapp.access", {"agent"=>"foo"})

# output: myapp.access {"agent":"foo"}
Expand All @@ -40,17 +40,17 @@ log.post("access", {"agent"=>"foo"})

### Fluent
```ruby
Fluent::Logger::FluentLogger.open('tag_prefix', :host=>'localhost', :port=24224)
Fluent::Logger.open(Fluent::Logger::FluentLogger, 'tag_prefix', :host=>'localhost', :port=24224)
```

### Console
```ruby
Fluent::Logger::ConsoleLogger.open(io)
Fluent::Logger.open(Fluent::Logger::ConsoleLogger, io)
```

### Null
```ruby
Fluent::Logger::NullLogger.open
Fluent::Logger.open(Fluent::Logger::NullLogger)
```

|name|description|
Expand Down

0 comments on commit e6e1d93

Please sign in to comment.