Skip to content

Commit

Permalink
Merge pull request graylog-labs#10 from mollstam/master
Browse files Browse the repository at this point in the history
Added formatter to logger
  • Loading branch information
Lennart Koopmann committed Sep 13, 2012
2 parents 2379373 + 320dd3f commit 69895fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/gelf/logger.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module GELF
# Methods for compatibility with Ruby Logger.
module LoggerCompatibility

attr_accessor :formatter

# Does nothing.
def close
end
Expand Down
4 changes: 4 additions & 0 deletions test/test_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,9 @@ class TestLogger < Test::Unit::TestCase
end
@logger << "Message"
end

should "have formatter attribute" do
@logger.formatter
end
end
end

0 comments on commit 69895fa

Please sign in to comment.