Skip to content

Commit d2beba0

Browse files
committed
Enable syntax highlighting for Ruby code in README
Signed-off-by: Masafumi Koba <[email protected]>
1 parent be39c22 commit d2beba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Fluent::Logger::NullLogger.open
245245

246246
To send events with nanosecond-precision time (Fluent 0.14 and up), specify `nanosecond_precision` to `FluentLogger` constructor.
247247

248-
```rb
248+
```ruby
249249
log = Fluent::Logger::FluentLogger.new(nil, :host => 'localhost', :port => 24224, :nanosecond_precision => true)
250250
# Use nanosecond time instead
251251
log.post("myapp.access", {"agent" => "foo"})
@@ -259,7 +259,7 @@ You can inject your own custom proc to handle buffer overflow in the event of co
259259
Your proc must accept a single argument, which will be the internal buffer of messages from the logger. A typical use-case for this would be writing to disk or possibly writing to Redis.
260260

261261
##### Example
262-
```
262+
```ruby
263263
class BufferOverflowHandler
264264
attr_accessor :buffer
265265

0 commit comments

Comments
 (0)