<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def end(self, *args):
 """ End a nested log. """


        if self._is_verbose:
            # verbose log has no end method
            return self

        if not args:
            self._indent -= 1
            return self
        self.writeln('end', *args)
        self._indent -= 1
        return self