def METHOD_NAME(self, kind, message):
    # Get the file/line where this message was generated.
    f = inspect.currentframe()
    # Step out of _write_message, and then out of wrapper.
    f = f.f_back.f_back
    file = os.path.abspath(inspect.getsourcefile(f))
    line = inspect.getlineno(f)
    sys.stderr.write('%s: %s:%d: %s: %s\n' % (self.progname, file, line,
                                              kind, message))