module Log::Controls
  module Log
    def self.example
      example = ::Log::Substitute.build
      example.clear
      example
    end

    module Levels
      def self.example
        logger = Log.example
        logger.add_level(higher)
        logger.add_level(middle)
        logger.add_level(lower)
        logger
      end

      def self.higher
        :higher
      end

      def self.middle
        :middle
      end

      def self.lower
        :lower
      end
    end

    module Operational
      def self.example
        ::Log.build(subject)
      end

      def self.subject
        'some subject'
      end
    end
  end
end

module Log::Controls
  module Log
    def self.example
      ::Log::Substitute.build
    end

    module Levels
      def self.example
        logger = Log.example
        logger.add_level(higher)
        logger.add_level(middle)
        logger.add_level(lower)
        logger
      end

      def self.higher
        :higher
      end

      def self.middle
        :middle
      end

      def self.lower
        :lower
      end
    end

    module Operational
      def self.example
        ::Log.build(subject)
      end

      def self.subject
        'some subject'
      end
    end
  end
end

--- 
+++ 
@@ -1,7 +1,9 @@
 module Log::Controls
   module Log
     def self.example
-      ::Log::Substitute.build
+      example = ::Log::Substitute.build
+      example.clear
+      example
     end
 
     module Levels
Substitute control has no defined default levels
