# File lib/puppet/util/log.rb, line 86
 86:     def Log.close(dest = nil)
 87:         if dest
 88:             if @destinations.include?(dest)
 89:                 if @destinations.respond_to?(:close)
 90:                     @destinations[dest].close
 91:                 end
 92:                 @destinations.delete(dest)
 93:             end
 94:         else
 95:             @destinations.each { |name, dest|
 96:                 if dest.respond_to?(:flush)
 97:                     dest.flush
 98:                 end
 99:                 if dest.respond_to?(:close)
100:                     dest.close
101:                 end
102:             }
103:             @destinations = {}
104:         end
105:     end