def register_inheritance_handler
      synchronize do

        return if defined?(Object.inherited_with_lumber_registry)

        Object.class_eval do

          class << self

            def inherited_with_lumber_registry(subclass)
              inherited_without_lumber_registry(subclass)

              # Add a logger to 'subclass' if it is directly in the registry
              # No need to check full inheritance chain LoggerSupport handles it
              # Also prevent rails from subsequently overriding our logger when rails
              # is loaded after registering logger inheritance
              if Lumber::InheritanceRegistry[subclass.name]
                subclass.send(:include, Lumber.logger_concern)
              end
            end

            alias_method_chain :inherited, :lumber_registry

          end

        end

      end
    end
def register_inheritance_handler
      synchronize do

        return if defined?(Object.inherited_with_lumber_registry)

        Object.class_eval do

          class << self

            def inherited_with_lumber_registry(subclass)
              inherited_without_lumber_registry(subclass)

              # Add a logger to 'subclass' if it is directly in the registry
              # No need to check full inheritance chain LoggerSupport handles it
              # Also prevent rails from subsequently overriding our logger when rails
              # is loaded after registering logger inheritance
              if Lumber::InheritanceRegistry[subclass.name]
                subclass.send(:include, Lumber.logger_concern)
              end
            end

            alias_method_chain :inherited, :lumber_registry

          end

        end

      end
    end
Adds a inheritance handler to Object so we can add loggers for registered classes