diff --git a/lib/gelf/logger.rb b/lib/gelf/logger.rb
index <HASH>..<HASH> 100644
--- a/lib/gelf/logger.rb
+++ b/lib/gelf/logger.rb
@@ -1,6 +1,9 @@
 module GELF
   # Methods for compatibility with Ruby Logger.
   module LoggerCompatibility
+
+    attr_accessor :formatter
+
     # Does nothing.
     def close
     end
Added formatter field to Logger