diff --git a/lib/fewer.rb b/lib/fewer.rb
index <HASH>..<HASH> 100644
--- a/lib/fewer.rb
+++ b/lib/fewer.rb
@@ -1,3 +1,20 @@
+module Fewer
+  class << self
+    attr_writer :logger
+
+    def logger
+      @logger ||= begin
+        defined?(Rails) ? Rails.logger : begin
+          require 'logger'
+          log = Logger.new(STDOUT)
+          log.level = Logger::INFO
+          log
+        end
+      end
+    end
+  end
+end
+
 require 'fewer/app'
 require 'fewer/engines'
 require 'fewer/errors'
Add Fewer.logger, which used the rails logger if available