diff --git a/lib/log4jruby/logger_for_class.rb b/lib/log4jruby/logger_for_class.rb
index <HASH>..<HASH> 100644
--- a/lib/log4jruby/logger_for_class.rb
+++ b/lib/log4jruby/logger_for_class.rb
@@ -9,6 +9,14 @@ module Log4jruby
       def klass.logger
         @logger ||= Logger.get(name)
       end
+      
+      def klass.logger=(logger)
+        @logger = logger
+      end
+      
+      def klass.set_logger(name, options = {})
+        @logger = Logger.get(name, options)
+      end
     end
 
     def logger
Added logger = and set_logger(name, options)