def host_name(host)
      if host.inspect == 'main'
        'main'
      elsif [Module, Class].include? host.class
        host
      else
        host.class
      end
    end
def host_name(host)
      if host.inspect == 'main'
        'main'
      elsif [Module, Class].include? host.class
        host
      else
        host.class
      end
    end
Private: Determines the contextual name of the host object.

 host - The object hosting this logger.

 Returns the String 'main' if this is the initial execution context of
 Ruby, the host itself when the host is a module, otherwise the object's
 class.